+
+void hooks_run_queue(void)
+{
+ gint i;
+
+ for (i = 0; i < queue_size; ++i) {
+ const ObHookQueue *q = &run_queue[i];
+
+ ob_debug("Running hook %s for client 0x%x", names[q->hook],
+ (q->client ? q->client->window : 0));
+ actions_run_acts(hooks[q->hook],
+ OB_USER_ACTION_HOOK,
+ 0, -1, -1, 0,
+ OB_FRAME_CONTEXT_NONE,
+ q->client);
+ }
+ queue_size = 0;
+}