mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-08 21:14:16 +00:00
app: move display on client monitors with --full-screen
There used to be a check to fullscreen the only visible display on current monitor, by checking the number of visible monitors. Now that fullscreen is independant for each display, and goes on current monitor, it's useless. However, this code path is still used for the app --full-screen, at startup time. And it is still nicer to open the display on respective client monitors, rather than all on current monitor.
This commit is contained in:
parent
17e3c48d0a
commit
d9035d0535
@ -631,16 +631,12 @@ viewer_window_focus_out_cb(GtkWindow *window G_GNUC_UNUSED,
|
||||
}
|
||||
|
||||
static void
|
||||
app_window_try_fullscreen(VirtViewerApp *self, VirtViewerWindow *win, gint nth)
|
||||
app_window_try_fullscreen(VirtViewerApp *self G_GNUC_UNUSED,
|
||||
VirtViewerWindow *win, gint nth)
|
||||
{
|
||||
GdkScreen *screen = gdk_screen_get_default();
|
||||
gboolean move =
|
||||
virt_viewer_app_get_n_windows_visible(self) > 1 ||
|
||||
self->priv->fullscreen_auto_conf;
|
||||
|
||||
if (!move)
|
||||
nth = -1;
|
||||
else if (nth >= gdk_screen_get_n_monitors(screen)) {
|
||||
if (nth >= gdk_screen_get_n_monitors(screen)) {
|
||||
DEBUG_LOG("skipping display %d", nth);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user