/** Handle an event on a dialog window. */ char ProcessDialogEvent(const XEvent *event) { Assert(event); switch(event->type) { case Expose: return HandleDialogExpose(&event->xexpose); case ButtonPress: return HandleDialogButtonPress(&event->xbutton); case ButtonRelease: return HandleDialogButtonRelease(&event->xbutton); case KeyPress: return HandleDialogKeyPress(&event->xkey); default: return 0; } }
/** Handle an event on a dialog window. */ int ProcessDialogEvent(const XEvent *event) { int handled = 0; Assert(event); switch(event->type) { case Expose: return HandleDialogExpose(&event->xexpose); case ButtonPress: return HandleDialogButtonPress(&event->xbutton); case ButtonRelease: return HandleDialogButtonRelease(&event->xbutton); default: break; } return handled; }