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/event.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbox/event.c') diff --git a/openbox/event.c b/openbox/event.c index 9701ad62..46baa6dd 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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 */ } -- cgit v1.2.3