home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_07
/
9n07096c
< prev
next >
Wrap
Text File
|
1991-05-27
|
614b
|
29 lines
Display *display;
XEvent event;
XNextEvent( display, &event );
switch( event.type )
{
case ButtonPress:
break;
case Expose:
/*
* Only redraw when all
* Expose events are in
*/
if ( event.xexpose.count == 0 )
{
/* ... */
}
break;
case KeyPress:
/*
* Handle keyboard input
*/
break;
}