]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
queue hooks so that they don't run as each thing happens, instead run them at the...
[chaz/openbox] / openbox / screen.c
index 60638a83c6b18832850496b3af2c4e4aceebc9ac..cd46c53bcb76cfa6092eb11a6e2db8fcb770057d 100644 (file)
@@ -31,6 +31,7 @@
 #include "event.h"
 #include "focus.h"
 #include "popup.h"
+#include "hooks.h"
 #include "render/render.h"
 #include "gettext.h"
 #include "obt/display.h"
@@ -708,6 +709,8 @@ void screen_set_desktop(guint num, gboolean dofocus)
 
     if (event_curtime != CurrentTime)
         screen_desktop_user_time = event_curtime;
+
+    hooks_queue(OB_HOOK_SCREEN_DESK_CHANGE, NULL);
 }
 
 void screen_add_desktop(gboolean current)
This page took 0.020276 seconds and 4 git commands to generate.