From 4648dc16e84a7c69e203b1cadec33028e99ce0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 21 Jun 2012 14:23:48 +0200 Subject: [PATCH] spice: improve fullscreen=auto-conf 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 ++++ virt-viewer.spec.in | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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); diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in index bbdfade..3227238 100644 --- a/virt-viewer.spec.in +++ b/virt-viewer.spec.in @@ -52,7 +52,7 @@ BuildRequires: gtk-vnc-devel >= 0.3.8 %endif %if %{with_spice} %if %{with_gtk3} -BuildRequires: spice-gtk3-devel >= 0.11 +BuildRequires: spice-gtk3-devel >= 0.12.101 %else BuildRequires: spice-gtk-devel >= 0.11 %endif