[Spice-commits] gtk/channel-main.c

Marc-André Lureau elmarco at kemper.freedesktop.org
Fri Apr 26 09:19:24 PDT 2013


 gtk/channel-main.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6ef2be2d1d87c41270cf2d87378b9d154133fc54
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Tue Apr 23 14:46:21 2013 +0200

    main: do not send monitor config if monitor state didn't change
    
    Don't send monitor config after spice_main_set_display_enabled() if the
    monitor state didn't change.
    
    This solves monitor "flashing", reconfiguring in a loop:
    https://bugzilla.redhat.com/show_bug.cgi?id=952327

diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index 4c3ae3b..8e79bbd 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -2610,6 +2610,8 @@ void spice_main_set_display_enabled(SpiceMainChannel *channel, int id, gboolean
             c->display[i].enabled = enabled;
     } else {
         g_return_if_fail(id < G_N_ELEMENTS(c->display));
+        if (c->display[id].enabled == enabled)
+            return;
         c->display[id].enabled = enabled;
     }
 


More information about the Spice-commits mailing list