[hackers] [wmii] Set input focus to root when switching to an empty view

From: Kris Maglione <jg_AT_suckless.org>
Date: Sat Feb 10 07:14:00 2007

changeset: 1823:28ff345a976f
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Feb 10 01:09:34 2007 -0500
summary: Set input focus to root when switching to an empty view

diff -r 6171d971355e -r 28ff345a976f view.c
--- a/view.c Fri Feb 09 22:06:07 2007 -0500
+++ b/view.c Sat Feb 10 01:09:34 2007 -0500
@@ -127,6 +127,8 @@ focus_view(WMScreen *s, View *v) {
                 }
         if((c = sel_client()))
                 focus_client(c, True);
+ else
+ XSetInputFocus(blz.dpy, blz.root, RevertToPointerRoot, CurrentTime);
         draw_frames();
         XSync(blz.dpy, False);
         XUngrabServer(blz.dpy);
Received on Sat Feb 10 2007 - 07:14:00 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:07 UTC