mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 23:00:54 +00:00
Fix bug with initial placement of fullscreen windows
The function app_window_try_fullscreen() will lookup the initial monitor
for the nth monitor internally, so we should pass in the display ID to the function
rather than the mapped monitor ID. This was causing 2 monitors on the
same monitor with a configuration like this:
monitor-mapping=1:2;2:1
This commit is contained in:
parent
910ee34248
commit
c64a3c8f70
@ -899,8 +899,7 @@ ensure_window_for_display(VirtViewerApp *self, VirtViewerDisplay *display)
|
||||
g_debug("Found a window without a display, reusing for this display...");
|
||||
virt_viewer_app_set_window_subtitle(self, win, nth);
|
||||
if (self->priv->fullscreen && !self->priv->kiosk)
|
||||
app_window_try_fullscreen(self, win,
|
||||
virt_viewer_app_get_initial_monitor_for_display(self, nth));
|
||||
app_window_try_fullscreen(self, win, nth);
|
||||
} else {
|
||||
win = virt_viewer_app_window_new(self, nth);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user