diff options
author | 2023-05-21 23:30:44 +0200 | |
---|---|---|
committer | 2023-05-21 23:30:44 +0200 | |
commit | 3312c849325d171984c9d32a0f093cd6a2e330c6 (patch) | |
tree | fbca792f14f611814430531e6dd7d5399d17b65a /src | |
parent | 771264099cf72d75d479eb21991b01988d75dcfc (diff) | |
download | cherry-3312c849325d171984c9d32a0f093cd6a2e330c6.tar.gz cherry-3312c849325d171984c9d32a0f093cd6a2e330c6.zip |
Define a structure for a CherryEvent
Diffstat (limited to 'src')
-rw-r--r-- | src/event.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h index 60ca240..249bac9 100644 --- a/src/event.h +++ b/src/event.h @@ -3,6 +3,7 @@ #ifndef __CHERRY_EVENT_H__ #define __CHERRY_EVENT_H__ +#include <X11/Xlib.h> enum Events { WINDOW_DELETED, @@ -11,4 +12,12 @@ enum Events { KEY_PRESSED }; +typedef struct CherryEvent { + Display *display; + Window window; + int event_id; + int x, y; + XKeyEvent xkey; +}; + #endif /* __CHERRY_EVENT_H__ */ |