diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/wm/ws.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gui/wm/ws.c b/gui/wm/ws.c index 35e3f03ef6..6c84a2d443 100644 --- a/gui/wm/ws.c +++ b/gui/wm/ws.c @@ -700,9 +700,6 @@ buttonreleased: return !wsTrue; } -static Bool wsDummyEvents( Display * display, XEvent * Event, XPointer arg ) -{ return True; } - void wsHandleEvents( void ){ // handle pending events while ( XPending(wsDisplay) ){ @@ -720,8 +717,6 @@ void wsMainLoop( void ) XLockDisplay( wsDisplay ); // XIfEvent( wsDisplay,&wsEvent,wsEvents,NULL ); -#if 1 - while(wsTrue){ // handle pending events while ( XPending(wsDisplay) ){ @@ -733,15 +728,6 @@ while(wsTrue){ if(delay<10*20) delay+=20; // pump up delay up to 0.2 sec (low activity) } -#else - - while( wsTrue ) - { - XIfEvent( wsDisplay,&wsEvent,wsDummyEvents,NULL ); - wsEvents( wsDisplay,&wsEvent,NULL ); - } -#endif - XUnlockDisplay( wsDisplay ); } |