implemented CreateClient <index> event

This commit is contained in:
Anselm R. Garbe 2006-05-01 21:58:31 +02:00
parent 161536badf
commit 70f3dfff77
2 changed files with 10 additions and 0 deletions

View File

@ -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;
}

View File

@ -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