add the mouse plugin
[dana/openbox.git] / plugins / mouse / mouse.c
1 #include "../../kernel/dispatch.h"
2 #include <glib.h>
3
4 void my_powerful_function() {}
5
6 static void event(ObEvent *e, void *foo)
7 {
8     switch (e->type) {
9     case Event_X_ButtonPress:
10         break;
11     case Event_X_ButtonRelease:
12         break;
13     case Event_X_MotionNotify:
14         break;
15     default:
16         g_assert_not_reached();
17     }
18 }
19
20 void plugin_startup()
21 {
22     dispatch_register(Event_X_ButtonPress | Event_X_ButtonRelease |
23                       Event_X_MotionNotify, (EventHandler)event, NULL);
24 }
25
26 void plugin_shutdown()
27 {
28     dispatch_register(0, (EventHandler)event, NULL);
29 }