diff options
| author | Jonathon Jongsma <jjongsma@redhat.com> | 2014-10-09 11:21:07 -0500 |
|---|---|---|
| committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2014-10-15 23:48:50 +0200 |
| commit | c64a3c8f707fcbb45c21cb6b4f5fc0b799ca6df5 (patch) | |
| tree | a1ac6773d6c79424b875cab58e8db916b61c317d /src | |
| parent | 910ee34248d98bd9f328c3f3e92120d49f55dedc (diff) | |
| download | virt-viewer-c64a3c8f707fcbb45c21cb6b4f5fc0b799ca6df5.tar.gz virt-viewer-c64a3c8f707fcbb45c21cb6b4f5fc0b799ca6df5.tar.xz virt-viewer-c64a3c8f707fcbb45c21cb6b4f5fc0b799ca6df5.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/virt-viewer-app.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c index 525ac70..f53f450 100644 --- a/src/virt-viewer-app.c +++ b/src/virt-viewer-app.c @@ -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); } |
