Revert "add XFlush to g_timeout callbacks"
[dana/openbox.git] / openbox / frame.c
index bd9527b..8a9a5a6 100644 (file)
@@ -1672,7 +1672,6 @@ static gboolean flash_timeout(gpointer data)
         self->focused = FALSE;
     }
 
         self->focused = FALSE;
     }
 
-    XFlush(obt_display);
     return TRUE; /* go again */
 }
 
     return TRUE; /* go again */
 }
 
@@ -1770,11 +1769,11 @@ static gboolean frame_animate_iconify(gpointer p)
     }
 
     XMoveResizeWindow(obt_display, self->window, x, y, w, h);
     }
 
     XMoveResizeWindow(obt_display, self->window, x, y, w, h);
+    XFlush(obt_display);
 
     if (time == 0)
         frame_end_iconify_animation(self);
 
 
     if (time == 0)
         frame_end_iconify_animation(self);
 
-    XFlush(obt_display);
     return time > 0; /* repeat until we're out of time */
 }
 
     return time > 0; /* repeat until we're out of time */
 }