diff Gui/wm/ws.c @ 8973:0a665389cf2b

- add playbar - add vpotmeter - fix gtk menu's pixel bug - fix some critical (10l) bug
author pontscho
date Fri, 17 Jan 2003 22:39:43 +0000
parents d07ab8e088a9
children c7f5df43b937
line wrap: on
line diff
--- a/Gui/wm/ws.c	Fri Jan 17 21:44:58 2003 +0000
+++ b/Gui/wm/ws.c	Fri Jan 17 22:39:43 2003 +0000
@@ -620,12 +620,15 @@
      {
        /* pump all motion events from the display queue:
 	  this way it works faster when moving the window */
-       static XEvent e;
-       while(XCheckTypedWindowEvent(display,Event->xany.window,MotionNotify,&e)){
+      static XEvent e;
+      if ( Event->xmotion.state )
+       {
+        while(XCheckTypedWindowEvent(display,Event->xany.window,MotionNotify,&e)){
 	 /* FIXME: need to make sure we didn't release/press the button in between...*/
 	 /* FIXME: do we need some timeout here to make sure we don't spend too much time
 	    removing events from the queue? */
 	 Event = &e;
+        }
        }
      }
      goto buttonreleased;