changeset: 139:f716dc367948
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Tue May 25 00:44:20 2010 +0200
files: tabbed.c
description:
XKill if windows won't close, cleanups.
diff -r 5eff0bc41822 -r f716dc367948 tabbed.c
--- a/tabbed.c Mon Apr 26 22:30:27 2010 +0200
+++ b/tabbed.c Tue May 25 00:44:20 2010 +0200
@@ -84,6 +84,7 @@
Window win;
int tabx;
Bool mapped;
+ Bool closed;
} Client;
/* function declarations */
@@ -548,7 +549,7 @@
if(!sel)
return;
- if(isprotodel(sel)) {
+ if(isprotodel(sel) && !sel->closed) {
ev.type = ClientMessage;
ev.xclient.window = sel->win;
ev.xclient.message_type = wmatom[WMProtocols];
@@ -556,6 +557,7 @@
ev.xclient.data.l[0] = wmatom[WMDelete];
ev.xclient.data.l[1] = CurrentTime;
XSendEvent(dpy, sel->win, False, NoEventMask, &ev);
+ sel->closed = True;
}
else
XKillClient(dpy, sel->win);
@@ -757,7 +759,6 @@
void
spawn(const Arg *arg) {
- puts("aaaa");
if(fork() == 0) {
if(dpy)
close(ConnectionNumber(dpy));
Received on Mon May 24 2010 - 22:43:24 UTC
This archive was generated by hypermail 2.2.0 : Mon May 24 2010 - 22:48:03 UTC