]> Dogcows Code - chaz/openbox/commitdiff
dont make two animations conflict
authorDana Jansens <danakj@orodu.net>
Sat, 5 May 2007 13:12:04 +0000 (13:12 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 5 May 2007 13:12:04 +0000 (13:12 +0000)
openbox/frame.c

index 38bbde18e429f0d5613f2e8ddf751f060aea0e5c..3d21c2b02f5c1189787aab1678cf23f0e05c53ff 100644 (file)
@@ -601,7 +601,8 @@ void frame_release_client(ObFrame *self, ObClient *client)
     g_assert(self->client == client);
 
     /* if there was any animation going on, kill it */
-    ob_main_loop_timeout_remove(ob_main_loop, frame_animate_iconify);
+    ob_main_loop_timeout_remove_data(ob_main_loop, frame_animate_iconify,
+                                     self, FALSE);
 
     /* check if the app has already reparented its window away */
     while (XCheckTypedWindowEvent(ob_display, client->window,
@@ -1120,7 +1121,8 @@ void frame_begin_iconify_animation(ObFrame *self, gboolean iconifying,
     if (self->iconify_animation_step == FRAME_ANIMATE_ICONIFY_STEPS ||
         self->iconify_animation_step == -FRAME_ANIMATE_ICONIFY_STEPS)
     {
-        ob_main_loop_timeout_remove(ob_main_loop, frame_animate_iconify);
+        ob_main_loop_timeout_remove_data(ob_main_loop, frame_animate_iconify,
+                                         self, FALSE);
         ob_main_loop_timeout_add(ob_main_loop,
                                  FRAME_ANIMATE_ICONIFY_TIME /
                                  FRAME_ANIMATE_ICONIFY_STEPS,
This page took 0.029916 seconds and 4 git commands to generate.