[Spice-devel] [PATCH spice-gtk 2/3] channel-display: Set monitors_max to 1 on init
Hans de Goede
hdegoede at redhat.com
Sat Jul 28 02:40:10 PDT 2012
This fixes remote-viewer with the new multi monitor support not working
when connecting to a spice-server without the new multi-monitor support.
Before this fix remote-viewer would hit the following g_return_if_fail:
(remote-viewer:24787): remote-viewer-CRITICAL **:
virt_viewer_session_spice_display_monitors:
assertion `monitors->len <= monitors_max' failed
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
gtk/channel-display.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gtk/channel-display.c b/gtk/channel-display.c
index 72d2c12..4ed3bbb 100644
--- a/gtk/channel-display.c
+++ b/gtk/channel-display.c
@@ -696,6 +696,7 @@ static void spice_display_channel_init(SpiceDisplayChannel *channel)
#if defined(WIN32)
c->dc = create_compatible_dc();
#endif
+ c->monitors_max = 1;
spice_display_channel_reset_capabilities(SPICE_CHANNEL(channel));
}
--
1.7.10.4
More information about the Spice-devel
mailing list