]> Dogcows Code - chaz/openbox/commitdiff
add XFlush to g_timeout callbacks
authorDana Jansens <danakj@orodu.net>
Mon, 14 Jun 2010 17:52:21 +0000 (13:52 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 14 Jun 2010 17:52:21 +0000 (13:52 -0400)
GMainLoop doesn't cause an flush to occur after handling a timeout.

openbox/dock.c
openbox/event.c
openbox/frame.c
openbox/keyboard.c
openbox/menuframe.c
openbox/moveresize.c
openbox/ping.c
openbox/popup.c
openbox/screen.c
openbox/startupnotify.c

index fa088c6b5bd8b5daffc78f639c74b9d714154088..64406d9eae055bf2f9a281fa2db084f4d027346d 100644 (file)
@@ -632,6 +632,7 @@ static gboolean hide_timeout(gpointer data)
 
     hide_timeout_id = 0;
 
+    XFlush(obt_display);
     return FALSE; /* don't repeat */
 }
 
@@ -643,6 +644,7 @@ static gboolean show_timeout(gpointer data)
 
     show_timeout_id = 0;
 
+    XFlush(obt_display);
     return FALSE; /* don't repeat */
 }
 
index 9701ad62bd2bb81a6ff2a9d074077a630197993e..46baa6dd41e7c41cee0f6f9effc776a0c8e12e17 100644 (file)
@@ -2079,6 +2079,7 @@ static gboolean focus_delay_func(gpointer data)
     if (client_focus(d->client) && config_focus_raise)
         stacking_raise(CLIENT_AS_WINDOW(d->client));
     event_curtime = old;
+    XFlush(obt_display);
     return FALSE; /* no repeat */
 }
 
@@ -2091,6 +2092,7 @@ static gboolean unfocus_delay_func(gpointer data)
     event_curserial = d->serial;
     focus_nothing();
     event_curtime = old;
+    XFlush(obt_display);
     return FALSE; /* no repeat */
 }
 
index 1623a83472d6938acac054959a09ece709febdde..9c065c7dcdf4fbe70ce9ee9e91cd5ad154784559 100644 (file)
@@ -1663,6 +1663,7 @@ static gboolean flash_timeout(gpointer data)
         self->focused = FALSE;
     }
 
+    XFlush(obt_display);
     return TRUE; /* go again */
 }
 
@@ -1760,11 +1761,11 @@ static gboolean frame_animate_iconify(gpointer p)
     }
 
     XMoveResizeWindow(obt_display, self->window, x, y, w, h);
-    XFlush(obt_display);
 
     if (time == 0)
         frame_end_iconify_animation(self);
 
+    XFlush(obt_display);
     return time > 0; /* repeat until we're out of time */
 }
 
index 5b8016dd9d6b5a98d773336459514c3b314a3885..95433acc7782bbc97e1ea9b260b70877ba147b45 100644 (file)
@@ -66,6 +66,7 @@ static void grab_keys(gboolean grab)
 static gboolean chain_timeout(gpointer data)
 {
     keyboard_reset_chains(0);
+    XFlush(obt_display);
     return FALSE; /* don't repeat */
 }
 
index 5708cdf8d2e337c604a209cfbed53ac1525c127e..fafc0f790c0185bc045ec0ff862019043d6d0e13 100644 (file)
@@ -1158,6 +1158,7 @@ static gboolean submenu_show_timeout(gpointer data)
 {
     g_assert(menu_frame_visible);
     menu_entry_frame_show_submenu((ObMenuEntryFrame*)data);
+    XFlush(obt_display);
     return FALSE;
 }
 
@@ -1165,6 +1166,7 @@ static gboolean submenu_hide_timeout(gpointer data)
 {
     g_assert(menu_frame_visible);
     menu_frame_hide((ObMenuFrame*)data);
+    XFlush(obt_display);
     return FALSE;
 }
 
index 2f68395a1e9ec5cc30bcfd6b8b0f40ffc02038e3..13f39df2a64b10092a99d7b85dd265541e54ba0f 100644 (file)
@@ -462,6 +462,8 @@ static gboolean sync_timeout_func(gpointer data)
     ++waiting_for_sync; /* we timed out waiting for our sync... */
     do_resize(); /* ...so let any pending resizes through */
 
+    XFlush(obt_display);
+
     if (waiting_for_sync > SYNC_TIMEOUTS) {
         sync_timer = 0;
         return FALSE; /* don't repeat */
@@ -616,6 +618,7 @@ static gboolean edge_warp_delay_func(gpointer data)
     }
     edge_warp_odd = !edge_warp_odd;
 
+    XFlush(obt_display);
     return TRUE; /* do repeat ! */
 }
 
index 7cb47669988f036fbfcdfdaa26171ff582e0e415..90c418293b27035abf9dc29b675031e2648f91ca 100644 (file)
@@ -148,6 +148,7 @@ static gboolean ping_timeout(gpointer data)
 
     ++t->waiting;
 
+    XFlush(obt_display);
     return TRUE; /* repeat */
 }
 
index e6e1ec5a3e1c952f8c889806af27936eac0e0318..8ff8c5330df1670e17fd87a53d1c6e11c1117e70 100644 (file)
@@ -148,6 +148,7 @@ static gboolean popup_show_timeout(gpointer data)
     self->delay_mapped = FALSE;
     self->delay_timer = 0;
 
+    XFlush(obt_display);
     return FALSE; /* don't repeat */
 }
 
index 353d2de077fbe2b4e59b146ca2d7d5580f75d7a6..e3ad861205b721be00a7609d13a5e4b14af2950a 100644 (file)
@@ -940,6 +940,7 @@ static gboolean hide_desktop_popup_func(gpointer data)
 {
     pager_popup_hide(desktop_popup);
     desktop_popup_timer = 0;
+    XFlush(obt_display);
     return FALSE; /* don't repeat */
 }
 
index 16654cfd13f4566ae068eaae126444e01099445b..06fbb6c8e74bb08fe6e6c4de4b2c24b8730e367b 100644 (file)
@@ -116,6 +116,7 @@ static gboolean sn_wait_timeout(gpointer data)
     SnStartupSequence *seq = data;
     sn_waits = g_slist_remove(sn_waits, seq);
     screen_set_root_cursor();
+    XFlush(obt_display);
     return FALSE; /* don't repeat */
 }
 
@@ -228,6 +229,7 @@ static gboolean sn_launch_wait_timeout(gpointer data)
 {
     SnLauncherContext *sn = data;
     sn_launcher_context_complete(sn);
+    XFlush(obt_display);
     return FALSE; /* don't repeat */
 }
 
This page took 0.039169 seconds and 4 git commands to generate.