From a47d0a53652a96ca1df96fc9268757df1431ae55 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 1 Mar 2008 01:52:38 -0500 Subject: queue hooks so that they don't run as each thing happens, instead run them at the end. keep the openbox code paths fast. --- openbox/event.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/event.c') diff --git a/openbox/event.c b/openbox/event.c index 142cf1f2..2563be2b 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -738,6 +738,11 @@ static void event_process(const XEvent *ec, gpointer data) e->type == MotionNotify) event_handle_user_input(client, e); + XFlush(obt_display); + + /* run all the hooks at once */ + hooks_run_queue(); + /* if something happens and it's not from an XEvent, then we don't know the time */ event_curtime = CurrentTime; -- cgit v1.2.3