[gnome-control-center] wacom: Protect calibrator UI to spawn animations multiple times
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Protect calibrator UI to spawn animations multiple times
- Date: Mon, 16 Dec 2013 11:58:17 +0000 (UTC)
commit ee2afb9bd4753799a756bc94957a42154533ee84
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 4324b07..d64d9f3 100644
--- a/panels/wacom/calibrator/calibrator-gui.c
+++ b/panels/wacom/calibrator/calibrator-gui.c
@@ -479,6 +479,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]