summaryrefslogtreecommitdiffstats
path: root/tabbed.c
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-11-09 00:13:04 +0100
committerEnno Boland (tox) <tox@s01.de>2009-11-09 00:13:04 +0100
commit22653127836523932e36d19268b134695d13d753 (patch)
tree2dbfa1968fdcd63571b8ddd0d44fe1bf8f578322 /tabbed.c
parent0944a2cef7e59865c9859829f5ecb580d48ef66d (diff)
downloadtabbed-22653127836523932e36d19268b134695d13d753.tar.gz
removing autoclose when last client exits.
Diffstat (limited to 'tabbed.c')
-rw-r--r--tabbed.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tabbed.c b/tabbed.c
index b240e1d..426fd65 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -145,7 +145,7 @@ static void (*handler[LASTEvent]) (const XEvent *) = {
};
static int bh, wx, wy, ww, wh;
static unsigned int numlockmask = 0;
-static Bool running = True, hadclients = False;
+static Bool running = True;
static Display *dpy;
static DC dc;
static Atom wmatom[WMLast], xembedatom;
@@ -563,7 +563,6 @@ manage(Window w) {
Client *c;
XEvent e;
- hadclients = True;
XWithdrawWindow(dpy, w, 0);
XReparentWindow(dpy, w, win, 0, bh);
XSelectInput(dpy, w, PropertyChangeMask|StructureNotifyMask|EnterWindowMask);
@@ -781,8 +780,6 @@ unmanage(Client *c) {
focus(c->next ? c->next : pc);
free(c);
XSync(dpy, False);
- if(hadclients && !clients)
- running = False;
}
void