[hackers] [wmii] Fix another focus bug.

From: Kris Maglione <jg_AT_suckless.org>
Date: Sat Mar 03 20:49:08 2007

changeset: 1991:9c58487f3e3a
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Mar 03 14:46:12 2007 -0500
summary: Fix another focus bug.

diff -r d5df7522b510 -r 9c58487f3e3a column.c
--- a/column.c Sat Mar 03 12:36:44 2007 -0500
+++ b/column.c Sat Mar 03 14:46:12 2007 -0500
@@ -187,7 +187,6 @@ resize:
                         if(f->collapsed)
                                 resize_client(f->client, &f->rect);
         }
- flush_masked_events(EnterWindowMask);
 }
 
 static void
diff -r d5df7522b510 -r 9c58487f3e3a event.c
--- a/event.c Sat Mar 03 12:36:44 2007 -0500
+++ b/event.c Sat Mar 03 14:46:12 2007 -0500
@@ -411,7 +411,7 @@ check_x_event(IXPConn *c) {
         XEvent ev;
         while(XPending(blz.dpy)) {
                 XNextEvent(blz.dpy, &ev);
- if(verbose & 0)
+ if(verbose)
                         printevent(&ev);
                 if(handler[ev.type])
                         handler[ev.type](&ev);
diff -r d5df7522b510 -r 9c58487f3e3a view.c
--- a/view.c Sat Mar 03 12:36:44 2007 -0500
+++ b/view.c Sat Mar 03 14:46:12 2007 -0500
@@ -108,9 +108,11 @@ update_frame_selectors(View *v) {
 
 void
 focus_view(WMScreen *s, View *v) {
+ View *old;
         Frame *f;
         Client *c;
 
+ old = screen->sel;
         XGrabServer(blz.dpy);
         assign_sel_view(v);
         update_frame_selectors(v);
@@ -129,7 +131,8 @@ focus_view(WMScreen *s, View *v) {
         draw_frames();
         XSync(blz.dpy, False);
         XUngrabServer(blz.dpy);
- flush_masked_events(EnterWindowMask);
+ if(v != old)
+ flush_masked_events(EnterWindowMask);
 }
 
 void
Received on Sat Mar 03 2007 - 20:49:08 UTC

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