[hackers] [wmii] Mask more events during mouse move/resize. Fixes issue #95. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Sun, 18 Oct 2009 21:33:46 +0000 (UTC)

changeset: 2556:33e8ef39fcf2
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Oct 18 17:33:37 2009 -0400
files: cmd/wmii/mouse.c
description:
Mask more events during mouse move/resize. Fixes issue #95.

diff -r c12cd18e53e2 -r 33e8ef39fcf2 cmd/wmii/mouse.c
--- a/cmd/wmii/mouse.c Sat Oct 17 21:52:29 2009 -0400
+++ b/cmd/wmii/mouse.c Sun Oct 18 17:33:37 2009 -0400
@@ -171,9 +171,12 @@
         XEvent ev;
 
         for(;;) {
- XMaskEvent(display, MouseMask|ExposureMask, &ev);
+ XMaskEvent(display, MouseMask|ExposureMask|StructureNotifyMask|PropertyChangeMask, &ev);
                 switch(ev.type) {
+ case ConfigureNotify:
                 case Expose:
+ case NoExpose:
+ case PropertyNotify:
                         dispatch_event(&ev);
                 default:
                         continue;
Received on Sun Oct 18 2009 - 21:33:46 UTC

This archive was generated by hypermail 2.2.0 : Sun Oct 18 2009 - 21:36:05 UTC