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.
This commit is contained in:
Marc-André Lureau 2012-06-21 14:23:48 +02:00
parent 8d9a9ca521
commit 4648dc16e8
3 changed files with 6 additions and 2 deletions

View File

@ -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])

View File

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

View File

@ -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