From 907f12fa418854d4dca9ce622dd087da65f05254 Mon Sep 17 00:00:00 2001 From: "Enno Boland (tox)" Date: Wed, 28 Oct 2009 20:09:53 +0100 Subject: Handling maprequest. that means tabbed works for xterm. --- tabbed.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tabbed.c') diff --git a/tabbed.c b/tabbed.c index 516f0ca..e10d001 100644 --- a/tabbed.c +++ b/tabbed.c @@ -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; @@ -581,6 +583,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; -- cgit v1.2.3