summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-06-14 13:52:21 -0400
committerDana Jansens <danakj@orodu.net>2010-06-14 13:52:21 -0400
commitaa3685d16af4a565eecdc39047ee8d140ef5cd99 (patch)
treedbd52b14ef66f591f9d1becb813f802c4db337c6 /openbox/frame.c
parent79cf72d17ff42e5bc8eb1adbd98bb42aa71fb085 (diff)
add XFlush to g_timeout callbacks
GMainLoop doesn't cause an flush to occur after handling a timeout.
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 1623a834..9c065c7d 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -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 */
}