~kris/suckless

tabbed

8b63e1219b7130f978f1dc2ef72f9e68720bbf5a — Enno Boland (tox) 16 years ago 1eab77f
removing XSetInputFocus() calls to be ICCCM compliant again. Thanks to Thomas Adam
1 files changed, 1 insertions(+), 2 deletions(-)

M tabbed.c
M tabbed.c => tabbed.c +1 -2
@@ 387,12 387,10 @@ focus(Client *c) {
	if(!c && !(c = sel ? sel : clients)) {
		XStoreName(dpy, win, "tabbed-"VERSION);
		XRaiseWindow(dpy, win);
		XSetInputFocus(dpy, win, RevertToPointerRoot, CurrentTime);
		return;
	}
	resize(c, ww, wh - bh);
	XRaiseWindow(dpy, c->win);
	XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
	sendxembed(c, XEMBED_FOCUS_IN, XEMBED_FOCUS_CURRENT, 0, 0);
	sendxembed(c, XEMBED_WINDOW_ACTIVATE, 0, 0, 0);
	XStoreName(dpy, win, c->name);


@@ 759,6 757,7 @@ sigchld(int unused) {

void
spawn(const Arg *arg) {
	puts("aaaa");
	if(fork() == 0) {
		if(dpy)
			close(ConnectionNumber(dpy));