11 int temp:1; /* just a placeholder to kill warnings for now.. */
15 /*! The button which generated the event */
17 /*! The pointer's x position on the root window when the event occured */
19 /*! The pointer's y position on the root window when the event occured */
21 /*! The modifiers that were pressed when the event occured. A bitmask of:
22 ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask,
25 /*! The name of the button/modifier combination being pressed,
31 /*! The keycode of the key which generated the event */
33 /*! The modifiers that were pressed when the event occured. A bitmask of:
34 ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask,
37 /* The list of strings which make up the chain that fired,
42 /* EventData is a PyObject */
43 typedef struct EventData {
45 /* The type of event which occured */
47 /*! The context in which the event occured, the type of window it occured
50 /* The Client on which the event occured, or NULL */
51 struct Client *client;
54 LogicalEvent *logical;
55 PointerEvent *pointer;
60 void eventdata_startup();
61 void eventdata_shutdown();
63 EventData *eventdata_new_logical(EventType type, GQuark context,
64 struct Client *client);
65 EventData *eventdata_new_pointer(EventType type, GQuark context,
66 struct Client *client, guint modifiers,
67 guint button, char *name,
68 int xroot, int yroot);
69 EventData *eventdata_new_key(EventType type, GQuark context,
70 struct Client *client, guint modifiers,
71 guint keycode, GList *keylist);
72 void eventdata_free(EventData *data);