[gnome-control-center/gnome-3-10] wacom: Protect calibrator UI to spawn animations multiple times



commit ab7a9fa4a212c493cfb38ba1178e392344092264
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Nov 29 14:30:10 2013 +0100

    wacom: Protect calibrator UI to spawn animations multiple times
    
    The window state may be updated more than once, so only initiate
    the UI and animations when it's first called.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719698

 panels/wacom/calibrator/calibrator-gui.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/calibrator/calibrator-gui.c b/panels/wacom/calibrator/calibrator-gui.c
index 73fcfcf..89e2311 100644
--- a/panels/wacom/calibrator/calibrator-gui.c
+++ b/panels/wacom/calibrator/calibrator-gui.c
@@ -476,6 +476,10 @@ on_fullscreen (GtkWindow           *window,
   if ((event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) == 0)
     return;
 
+  /* Protect against window state multiple changes*/
+  if (CLUTTER_ACTOR_IS_VISIBLE (area->action_layer))
+    return;
+
   clutter_actor_show (area->action_layer);
   clutter_actor_show (area->clock);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]