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/focus.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/focus.c')
| -rw-r--r-- | openbox/focus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 5eb27bc4..23cf9101 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -105,8 +105,8 @@ void focus_set_client(ObClient *client) OBT_PROP_SET32(obt_root(ob_screen), NET_ACTIVE_WINDOW, WINDOW, active); } - hooks_run(OB_HOOK_WIN_UNFOCUS, old); - hooks_run(OB_HOOK_WIN_FOCUS, client); + hooks_queue(OB_HOOK_WIN_UNFOCUS, old); + hooks_queue(OB_HOOK_WIN_FOCUS, client); } static ObClient* focus_fallback_target(gboolean allow_refocus, |
