diff options
author | Enno Boland (tox) <tox@s01.de> | 2009-10-28 20:09:53 +0100 |
---|---|---|
committer | Enno Boland (tox) <tox@s01.de> | 2009-10-28 20:09:53 +0100 |
commit | 907f12fa418854d4dca9ce622dd087da65f05254 (patch) | |
tree | 91b823742dd10954caed6ca7da37c731400eefe7 /tabbed.c | |
parent | 12a1449305e5be8b1d417e31da88c74566b855c4 (diff) |
Handling maprequest. that means tabbed works for xterm.
Diffstat (limited to 'tabbed.c')
-rw-r--r-- | tabbed.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -111,6 +111,7 @@ static Bool isprotodel(Client *c); static void keypress(const XEvent *e); static void killclient(const Arg *arg); static void manage(Window win); +static void maprequest(const XEvent *e); static void move(const Arg *arg); static void propertynotify(const XEvent *e); static void resize(Client *c, int w, int h); @@ -139,6 +140,7 @@ static void (*handler[LASTEvent]) (const XEvent *) = { [Expose] = expose, [FocusIn] = focusin, [KeyPress] = keypress, + [MapRequest] = maprequest, [PropertyNotify] = propertynotify, }; static int bh, wx, wy, ww, wh; @@ -582,6 +584,14 @@ manage(Window w) { } void +maprequest(const XEvent *e) { + const XMapRequestEvent *ev = &e->xmaprequest; + + if(!getclient(ev->window)) + manage(ev->window); +} + +void move(const Arg *arg) { int i; Client *c; |