summaryrefslogtreecommitdiff
path: root/src/python.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/python.hh')
-rw-r--r--src/python.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python.hh b/src/python.hh
index b9798781..7cec7667 100644
--- a/src/python.hh
+++ b/src/python.hh
@@ -61,6 +61,7 @@ enum EventAction {
EventCloseWindow,
EventStartup,
EventShutdown,
+ EventKey,
EventFocus,
EventBell,
NUM_EVENTS
@@ -147,6 +148,7 @@ public:
Time time;
unsigned int state;
std::string key;
+ EventAction action; // this is here so that all the Data structs have .action
KeyData(int screen, Client *client, Time time, unsigned int state,
unsigned int key) {
@@ -156,6 +158,7 @@ public:
this->state = state;
this->key = XKeysymToString(XKeycodeToKeysym(**otk::display,
key, 0));
+ this->action = EventKey;
}
};