comparison 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
comparison
equal deleted inserted replaced
8972:2ed9b2143f94 8973:0a665389cf2b
618 case MotionNotify: 618 case MotionNotify:
619 i=wsMoveMouse; 619 i=wsMoveMouse;
620 { 620 {
621 /* pump all motion events from the display queue: 621 /* pump all motion events from the display queue:
622 this way it works faster when moving the window */ 622 this way it works faster when moving the window */
623 static XEvent e; 623 static XEvent e;
624 while(XCheckTypedWindowEvent(display,Event->xany.window,MotionNotify,&e)){ 624 if ( Event->xmotion.state )
625 {
626 while(XCheckTypedWindowEvent(display,Event->xany.window,MotionNotify,&e)){
625 /* FIXME: need to make sure we didn't release/press the button in between...*/ 627 /* FIXME: need to make sure we didn't release/press the button in between...*/
626 /* FIXME: do we need some timeout here to make sure we don't spend too much time 628 /* FIXME: do we need some timeout here to make sure we don't spend too much time
627 removing events from the queue? */ 629 removing events from the queue? */
628 Event = &e; 630 Event = &e;
631 }
629 } 632 }
630 } 633 }
631 goto buttonreleased; 634 goto buttonreleased;
632 case ButtonRelease: i=Event->xbutton.button + 128; goto buttonreleased; 635 case ButtonRelease: i=Event->xbutton.button + 128; goto buttonreleased;
633 case ButtonPress: i=Event->xbutton.button; goto buttonreleased; 636 case ButtonPress: i=Event->xbutton.button; goto buttonreleased;