618 |
switch (ev->type) |
switch (ev->type) |
619 |
{ |
{ |
620 |
case KeyPress: |
case KeyPress: |
621 |
|
#ifdef DEBUG |
622 |
|
printf("KeyPress\n"); |
623 |
|
#endif |
624 |
handleKeyPress ((XKeyEvent *) ev); |
handleKeyPress ((XKeyEvent *) ev); |
625 |
break; |
break; |
626 |
case ButtonPress: |
case ButtonPress: |
627 |
|
#ifdef DEBUG |
628 |
|
printf("ButtonPress\n"); |
629 |
|
#endif |
630 |
handleButtonPress ((XButtonEvent *) ev); |
handleButtonPress ((XButtonEvent *) ev); |
631 |
break; |
break; |
632 |
case ButtonRelease: |
case ButtonRelease: |
633 |
|
#ifdef DEBUG |
634 |
|
printf("ButtonRelease\n"); |
635 |
|
#endif |
636 |
handleButtonRelease ((XButtonEvent *) ev); |
handleButtonRelease ((XButtonEvent *) ev); |
637 |
break; |
break; |
638 |
case DestroyNotify: |
case DestroyNotify: |
639 |
|
#ifdef DEBUG |
640 |
|
printf("DestroyNotify\n"); |
641 |
|
#endif |
642 |
handleDestroyNotify ((XDestroyWindowEvent *) ev); |
handleDestroyNotify ((XDestroyWindowEvent *) ev); |
643 |
break; |
break; |
644 |
case UnmapNotify: |
case UnmapNotify: |
645 |
|
#ifdef DEBUG |
646 |
|
printf("UnmapNotify\n"); |
647 |
|
#endif |
648 |
handleUnmapNotify ((XUnmapEvent *) ev); |
handleUnmapNotify ((XUnmapEvent *) ev); |
649 |
break; |
break; |
650 |
case MapRequest: |
case MapRequest: |
651 |
|
#ifdef DEBUG |
652 |
|
printf("MapRequest\n"); |
653 |
|
#endif |
654 |
handleMapRequest ((XMapRequestEvent *) ev); |
handleMapRequest ((XMapRequestEvent *) ev); |
655 |
break; |
break; |
656 |
case ConfigureRequest: |
case ConfigureRequest: |
657 |
|
#ifdef DEBUG |
658 |
|
printf("ConfigureRequest\n"); |
659 |
|
#endif |
660 |
handleConfigureRequest ((XConfigureRequestEvent *) ev); |
handleConfigureRequest ((XConfigureRequestEvent *) ev); |
661 |
break; |
break; |
662 |
case EnterNotify: |
case EnterNotify: |
663 |
|
#ifdef DEBUG |
664 |
|
printf("EnterNotify\n"); |
665 |
|
#endif |
666 |
handleEnterNotify ((XCrossingEvent *) ev); |
handleEnterNotify ((XCrossingEvent *) ev); |
667 |
break; |
break; |
668 |
case FocusIn: |
case FocusIn: |
669 |
|
#ifdef DEBUG |
670 |
|
printf("FocusIn\n"); |
671 |
|
#endif |
672 |
handleFocusIn ((XFocusChangeEvent *) ev); |
handleFocusIn ((XFocusChangeEvent *) ev); |
673 |
break; |
break; |
674 |
case FocusOut: |
case FocusOut: |
675 |
|
#ifdef DEBUG |
676 |
|
printf("FocusOut\n"); |
677 |
|
#endif |
678 |
handleFocusOut ((XFocusChangeEvent *) ev); |
handleFocusOut ((XFocusChangeEvent *) ev); |
679 |
break; |
break; |
680 |
case PropertyNotify: |
case PropertyNotify: |
681 |
|
#ifdef DEBUG |
682 |
|
printf("PropertyNotify\n"); |
683 |
|
#endif |
684 |
handlePropertyNotify ((XPropertyEvent *) ev); |
handlePropertyNotify ((XPropertyEvent *) ev); |
685 |
break; |
break; |
686 |
case ClientMessage: |
case ClientMessage: |
687 |
|
#ifdef DEBUG |
688 |
|
printf("clientMessage\n"); |
689 |
|
#endif |
690 |
handleClientMessage ((XClientMessageEvent *) ev); |
handleClientMessage ((XClientMessageEvent *) ev); |
691 |
break; |
break; |
692 |
default: |
default: |
693 |
|
#ifdef DEBUG |
694 |
|
printf("default\n"); |
695 |
|
#endif |
696 |
if (shape && ev->type == shape_event) |
if (shape && ev->type == shape_event) |
697 |
handleShape ((XShapeEvent *) ev); |
handleShape ((XShapeEvent *) ev); |
698 |
} |
} |