diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-03-01 01:52:38 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-03-01 01:52:38 -0500 |
| commit | a47d0a53652a96ca1df96fc9268757df1431ae55 (patch) | |
| tree | 5815a3fab5d8332a5a62b148ab9486ba28e66c15 /openbox/event.c | |
| parent | 93a38d46bfec781ff9783c0d5ff065f7b2f2b875 (diff) | |
queue hooks so that they don't run as each thing happens, instead run them at the end. keep the openbox code paths fast.
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
