- XSync (dpy, False);
- /* handle my own friggin events. mmmlaaaa */
- while ( XPending(dpy) ){
- XEvent event;
- XNextEvent( dpy, &event );
- if ( handle_event( dpy, &event ) == 1 ){
- resizeWormhole( &worm, dpy, &window );
- }
- }
- /* screenhack_handle_events (dpy); */
-
- if (delay) usleep (delay);
- /* eraseWormhole( dpy, &window, &gc, &worm ); */
- /*
- XSetForeground( dpy, gc, worm.black.pixel );
- XFillRectangle( dpy, window, gc, 0, 0, SCREEN_X, SCREEN_Y );
- */
- }