From aa3685d16af4a565eecdc39047ee8d140ef5cd99 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 14 Jun 2010 13:52:21 -0400 Subject: add XFlush to g_timeout callbacks GMainLoop doesn't cause an flush to occur after handling a timeout. --- openbox/moveresize.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbox/moveresize.c') 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 ! */ } -- cgit v1.2.3