comparison Gui/wm/ws.c @ 1709:a4e0211455d8

GUI integration, step 1
author arpi
date Mon, 27 Aug 2001 00:55:25 +0000
parents 7955814db4c7
children 5e4214a7540e
comparison
equal deleted inserted replaced
1708:b2e842edc417 1709:a4e0211455d8
629 } 629 }
630 630
631 Bool wsDummyEvents( Display * display,XEvent * Event,XPointer arg ) 631 Bool wsDummyEvents( Display * display,XEvent * Event,XPointer arg )
632 { return True; } 632 { return True; }
633 633
634 // mplTimerHandler(0); // handle timer event
635 void wsHandleEvents(){
636 // handle pending events
637 while ( XPending(wsDisplay) ){
638 XNextEvent( wsDisplay,&wsEvent );
639 // printf("### X event: %d [%d]\n",wsEvent.type,delay);
640 wsEvents( wsDisplay,&wsEvent,NULL );
641 }
642 }
643
634 void wsMainLoop( void ) 644 void wsMainLoop( void )
635 { 645 {
636 int delay=20; 646 int delay=20;
637 fprintf( stderr,"[ws] init threads: %d\n",XInitThreads() ); 647 fprintf( stderr,"[ws] init threads: %d\n",XInitThreads() );
638 XSynchronize( wsDisplay,False ); 648 XSynchronize( wsDisplay,False );