예제 #1
0
파일: confirm.c 프로젝트: kuailexs/jwm
/** 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;
    }

}
예제 #2
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;

}