]> Dogcows Code - chaz/openbox/blobdiff - openbox/dispatch.c
dont focus anything in the kernel from showing-the-desktop mode
[chaz/openbox] / openbox / dispatch.c
index 059f163bc47e66a8fb27297f76b3f8b3f7bcbb3f..d6f91a2f6b66c42fa57e46467a7021a4b458fc0e 100644 (file)
@@ -212,3 +212,30 @@ void dispatch_signal(int signal)
         f->h(&obe, f->data);
     }
 }
+
+void dispatch_move(Client *c, int *x, int *y)
+{
+    guint i;
+    EventType e = Event_Client_Moving;
+    GSList *it;
+    ObEvent obe;
+
+    obe.type = e;
+    obe.data.c.client = c;
+    obe.data.c.num[0] = *x;
+    obe.data.c.num[1] = *y;
+
+    i = 0;
+    while (e > 1) {
+        e >>= 1;
+        ++i;
+    }
+
+    for (it = funcs[i]; it != NULL; it = it->next) {
+        Func *f = it->data;
+        f->h(&obe, f->data);
+    }
+
+    *x = obe.data.c.num[0];
+    *y = obe.data.c.num[1];
+}
This page took 0.022796 seconds and 4 git commands to generate.