changeset:   1898:0f0545ba214e
tag:         tip
user:        Kris Maglione <jg_AT_suckless.org>
date:        Sun Feb 18 12:33:17 2007 -0500
summary:     Fix focus bug.
diff -r 6819d61ed7d0 -r 0f0545ba214e event.c
--- a/event.c	Sun Feb 18 12:11:00 2007 -0500
+++ b/event.c	Sun Feb 18 12:33:17 2007 -0500
@@ -276,6 +276,9 @@ focusin(XEvent *e) {
         Client *c;
         XFocusChangeEvent *ev = &e->xfocus;
 
+	if(ev->detail == NotifyPointer)
+		return;
+
         c = client_of_win(ev->window);
         if(c) {
                 if(verbose) {
@@ -321,6 +324,9 @@ focusout(XEvent *e) {
 focusout(XEvent *e) {
         Client *c;
         XFocusChangeEvent *ev = &e->xfocus;
+
+	if(ev->detail == NotifyPointer)
+		return;
 
         c = client_of_win(ev->window);
         if(c)
Received on Sun Feb 18 2007 - 18:36:29 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:25 UTC