commit 70f3dfff77eef6cb5e446299b5b34d581a314a7e
parent 161536badf4c4c10f1b63d40ceefa66b83e85d52
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Mon, 1 May 2006 21:58:31 +0200
implemented CreateClient <index> event
Diffstat:
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/cmd/wm/client.c b/cmd/wm/client.c
@@ -50,6 +50,7 @@ create_client(Window w, XWindowAttributes *wa)
XClassHint ch;
long msize;
static unsigned int id = 1;
+ static char buf[256];
c->id = id++;
c->win = w;
@@ -85,6 +86,8 @@ create_client(Window w, XWindowAttributes *wa)
c->gc = XCreateGC(dpy, c->framewin, 0, 0);
XSync(dpy, False);
cext_vattach(vector_of_clients(&client), c);
+ snprintf(buf, sizeof(buf), "CreateClient %d\n", client.size - 1);
+ write_event(buf);
return c;
}
diff --git a/cmd/wm/wmiiwm.1 b/cmd/wm/wmiiwm.1
@@ -495,6 +495,13 @@ argument represents this client in the
.I /client
namespace.
.TP 2
+CreateClient <index>
+This event is reported whenever a client is created. The
+.IR <index>
+argument represents this client in the
+.I /client
+namespace.
+.TP 2
Key <shortcut>
This event is reported whenever a shortcut has been pressed, which has been
grabbed through writing