[Mplayer-cvslog] CVS: main/Gui/wm ws.c,1.64,1.65

Zoltan Ponekker pontscho at mplayerhq.hu
Fri Jan 17 23:39:45 CET 2003


Update of /cvsroot/mplayer/main/Gui/wm
In directory mail:/var/tmp.root/cvs-serv29898/Gui/wm

Modified Files:
	ws.c 
Log Message:


 - add playbar
 - add vpotmeter
 - fix gtk menu's pixel bug
 - fix some critical (10l) bug


Index: ws.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/wm/ws.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- ws.c	13 Jan 2003 23:38:49 -0000	1.64
+++ ws.c	17 Jan 2003 22:39:42 -0000	1.65
@@ -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;



More information about the MPlayer-cvslog mailing list