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/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/screen.c') diff --git a/openbox/screen.c b/openbox/screen.c index 3432ac43..cd46c53b 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -710,7 +710,7 @@ void screen_set_desktop(guint num, gboolean dofocus) if (event_curtime != CurrentTime) screen_desktop_user_time = event_curtime; - hooks_run(OB_HOOK_SCREEN_DESK_CHANGE, NULL); + hooks_queue(OB_HOOK_SCREEN_DESK_CHANGE, NULL); } void screen_add_desktop(gboolean current) -- cgit v1.2.3