[Spice-devel] [PATCH spice-gtk] main: send monitor config if agent is disconnected

Marc-André Lureau marcandre.lureau at gmail.com
Mon Apr 7 05:18:21 PDT 2014


Monitor config can be handled without agent running
---
 gtk/channel-main.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index 58f5d31..4b4f5e8 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -1145,7 +1145,6 @@ gboolean spice_main_send_monitor_config(SpiceMainChannel *channel)
 
     g_return_val_if_fail(SPICE_IS_MAIN_CHANNEL(channel), FALSE);
     c = channel->priv;
-    g_return_val_if_fail(c->agent_connected, FALSE);
 
     if (spice_main_agent_test_capability(channel,
                                      VD_AGENT_CAP_SPARSE_MONITORS_CONFIG)) {
@@ -1400,8 +1399,6 @@ static gboolean timer_set_display(gpointer data)
     gint i;
 
     c->timer_id = 0;
-    if (!c->agent_connected)
-        return FALSE;
 
     session = spice_channel_get_session(SPICE_CHANNEL(channel));
 
-- 
1.8.5.3



More information about the Spice-devel mailing list