mirror of https://github.com/0intro/wmii
implemented CreateClient <index> event
This commit is contained in:
parent
161536badf
commit
70f3dfff77
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue