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:
Jonathon Jongsma 2014-10-09 11:21:07 -05:00 committed by Fabiano Fidêncio
parent 910ee34248
commit c64a3c8f70

View File

@ -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);
}