|
|
4ab194 |
From 912d62f4b706db37a8b023ca2e06a24fb0ac97e5 Mon Sep 17 00:00:00 2001
|
|
|
4ab194 |
From: Jonathon Jongsma <jjongsma@redhat.com>
|
|
|
4ab194 |
Date: Thu, 9 Oct 2014 11:21:07 -0500
|
|
|
4ab194 |
Subject: [PATCH] Fix bug with initial placement of fullscreen windows
|
|
|
4ab194 |
|
|
|
4ab194 |
The function app_window_try_fullscreen() will lookup the initial monitor
|
|
|
4ab194 |
for the nth monitor internally, so we should pass in the display ID to the function
|
|
|
4ab194 |
rather than the mapped monitor ID. This was causing 2 monitors on the
|
|
|
4ab194 |
same monitor with a configuration like this:
|
|
|
4ab194 |
|
|
|
4ab194 |
monitor-mapping=1:2;2:1
|
|
|
4ab194 |
|
|
|
4ab194 |
(cherry picked from commit c64a3c8f707fcbb45c21cb6b4f5fc0b799ca6df5)
|
|
|
4ab194 |
---
|
|
|
4ab194 |
src/virt-viewer-app.c | 3 +--
|
|
|
4ab194 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
4ab194 |
|
|
|
4ab194 |
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
|
|
|
4ab194 |
index 1abcc90..6dbe4bb 100644
|
|
|
4ab194 |
--- a/src/virt-viewer-app.c
|
|
|
4ab194 |
+++ b/src/virt-viewer-app.c
|
|
|
4ab194 |
@@ -880,8 +880,7 @@ ensure_window_for_display(VirtViewerApp *self, VirtViewerDisplay *display)
|
|
|
4ab194 |
g_debug("Found a window without a display, reusing for this display...");
|
|
|
4ab194 |
virt_viewer_app_set_window_subtitle(self, win, nth);
|
|
|
4ab194 |
if (self->priv->fullscreen && !self->priv->kiosk)
|
|
|
4ab194 |
- app_window_try_fullscreen(self, win,
|
|
|
4ab194 |
- virt_viewer_app_get_initial_monitor_for_display(self, nth));
|
|
|
4ab194 |
+ app_window_try_fullscreen(self, win, nth);
|
|
|
4ab194 |
} else {
|
|
|
4ab194 |
win = virt_viewer_app_window_new(self, nth);
|
|
|
4ab194 |
}
|