[virt-tools-list] [PATCH virt-viewer 02/25] spice: improve fullscreen=auto-conf
Marc-André Lureau
marcandre.lureau at gmail.com
Tue Jul 17 19:24:44 UTC 2012
Do keep client monitor position, do not align monitors automatically.
The align property is only available since v0.12.101.
---
configure.ac | 2 +-
src/virt-viewer-session-spice.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 494cd13..a2471f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@ GTK2_REQUIRED="2.18.0"
GTK3_REQUIRED="3.0"
GTK_VNC1_REQUIRED="0.3.8"
GTK_VNC2_REQUIRED="0.4.0"
-SPICE_GTK_REQUIRED="0.11"
+SPICE_GTK_REQUIRED="0.12.101"
SPICE_PROTOCOL_REQUIRED="0.10.1"
AC_MSG_CHECKING([for native Win32])
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index 7b47735..6577237 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -499,6 +499,10 @@ virt_viewer_session_spice_fullscreen_auto_conf(VirtViewerSessionSpice *self)
DEBUG_LOG("Performing full screen auto-conf, %d host monitors",
gdk_screen_get_n_monitors(screen));
+ g_object_set(G_OBJECT(cmain),
+ "disable-display-position", FALSE,
+ "disable-display-align", TRUE,
+ NULL);
spice_main_set_display_enabled(cmain, -1, FALSE);
for (i = 0; i < gdk_screen_get_n_monitors(screen); i++) {
gdk_screen_get_monitor_geometry(screen, i, &dest);
--
1.7.10.4
More information about the virt-tools-list
mailing list