diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-06-14 13:52:21 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-06-14 13:52:21 -0400 |
| commit | aa3685d16af4a565eecdc39047ee8d140ef5cd99 (patch) | |
| tree | dbd52b14ef66f591f9d1becb813f802c4db337c6 /openbox/moveresize.c | |
| parent | 79cf72d17ff42e5bc8eb1adbd98bb42aa71fb085 (diff) | |
add XFlush to g_timeout callbacks
GMainLoop doesn't cause an flush to occur after handling a timeout.
Diffstat (limited to 'openbox/moveresize.c')
| -rw-r--r-- | openbox/moveresize.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 2f68395a..13f39df2 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -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 ! */ } |
