[hackers] [tabbed] removing XSetInputFocus() calls to be ICCCM compliant again. Thanks to Thomas Adam || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Mon, 26 Apr 2010 20:30:29 +0000 (UTC)

changeset: 138:5eff0bc41822
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Mon Apr 26 22:30:27 2010 +0200
files: tabbed.c
description:
removing XSetInputFocus() calls to be ICCCM compliant again. Thanks to Thomas Adam

diff -r a1102e52ead4 -r 5eff0bc41822 tabbed.c
--- a/tabbed.c Wed Mar 24 23:37:46 2010 +0100
+++ b/tabbed.c Mon Apr 26 22:30:27 2010 +0200
@@ -387,12 +387,10 @@
         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 @@
 
 void
 spawn(const Arg *arg) {
+ puts("aaaa");
         if(fork() == 0) {
                 if(dpy)
                         close(ConnectionNumber(dpy));
Received on Mon Apr 26 2010 - 20:30:29 UTC

This archive was generated by hypermail 2.2.0 : Mon Apr 26 2010 - 20:36:03 UTC