]> Dogcows Code - chaz/openbox/blob - otk/eventhandler.cc
set the log domain for each plugin properly
[chaz/openbox] / otk / eventhandler.cc
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2
3 #include "config.h"
4
5 #include "display.hh"
6 #include "eventhandler.hh"
7
8 namespace otk {
9
10 EventHandler::EventHandler()
11 {
12 }
13
14
15 EventHandler::~EventHandler()
16 {
17 }
18
19
20 void EventHandler::handle(const XEvent &e)
21 {
22 switch(e.type){
23 case KeyPress:
24 return keyPressHandler(e.xkey);
25 case KeyRelease:
26 return keyReleaseHandler(e.xkey);
27 case ButtonPress:
28 return buttonPressHandler(e.xbutton);
29 case ButtonRelease:
30 return buttonReleaseHandler(e.xbutton);
31 case MotionNotify:
32 return motionHandler(e.xmotion);
33 case EnterNotify:
34 return enterHandler(e.xcrossing);
35 case LeaveNotify:
36 return leaveHandler(e.xcrossing);
37 case FocusIn:
38 return focusHandler(e.xfocus);
39 case FocusOut:
40 return unfocusHandler(e.xfocus);
41 case Expose:
42 return exposeHandler(e.xexpose);
43 case GraphicsExpose:
44 return graphicsExposeHandler(e.xgraphicsexpose);
45 case NoExpose:
46 return noExposeEventHandler(e.xnoexpose);
47 case CirculateRequest:
48 return circulateRequestHandler(e.xcirculaterequest);
49 case ConfigureRequest:
50 return configureRequestHandler(e.xconfigurerequest);
51 case MapRequest:
52 return mapRequestHandler(e.xmaprequest);
53 case ResizeRequest:
54 return resizeRequestHandler(e.xresizerequest);
55 case CirculateNotify:
56 return circulateHandler(e.xcirculate);
57 case ConfigureNotify:
58 return configureHandler(e.xconfigure);
59 case CreateNotify:
60 return createHandler(e.xcreatewindow);
61 case DestroyNotify:
62 return destroyHandler(e.xdestroywindow);
63 case GravityNotify:
64 return gravityHandler(e.xgravity);
65 case MapNotify:
66 return mapHandler(e.xmap);
67 case MappingNotify:
68 return mappingHandler(e.xmapping);
69 case ReparentNotify:
70 return reparentHandler(e.xreparent);
71 case UnmapNotify:
72 return unmapHandler(e.xunmap);
73 case VisibilityNotify:
74 return visibilityHandler(e.xvisibility);
75 case ColormapNotify:
76 return colorMapHandler(e.xcolormap);
77 case ClientMessage:
78 return clientMessageHandler(e.xclient);
79 case PropertyNotify:
80 return propertyHandler(e.xproperty);
81 case SelectionClear:
82 return selectionClearHandler(e.xselectionclear);
83 case SelectionNotify:
84 return selectionHandler(e.xselection);
85 case SelectionRequest:
86 return selectionRequestHandler(e.xselectionrequest);
87 default:
88 #ifdef SHAPE
89 if (e.type == display->shapeEventBase())
90 return shapeHandler((*(XShapeEvent*)&e));
91 #endif // SHAPE
92 #ifdef XKB
93 if (e.type == display->xkbEventBase())
94 return xkbHandler((*(XkbEvent*)&e));
95 #endif // XKB
96 ;
97 }
98 }
99
100
101 void EventHandler::clientMessageHandler(const XClientMessageEvent &)
102 {
103
104 }
105
106 }
This page took 0.039364 seconds and 4 git commands to generate.