aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-04-30 09:35:29 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-04-30 09:35:29 +0200
commitbefac6668eab41849b0e638b20c2636e82328fb4 (patch)
treee1ddc08c1a0095a5948a7ee9dcc4efc1899ce629 /wayland.h
parent93044651200982abc936d727c0447b911dfe36b8 (diff)
add mouse support
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/wayland.h b/wayland.h
index 97c608a..0c89e03 100644
--- a/wayland.h
+++ b/wayland.h
@@ -9,12 +9,12 @@
#include "xdg-shell-client-protocol.h"
typedef enum {
- KEY_MOD_NONE = 1 << 0,
- KEY_MOD_CTRL = 1 << 1,
- KEY_MOD_ALT = 1 << 2,
- KEY_MOD_SHIFT = 1 << 3,
- KEY_MOD_LOGO = 1 << 4,
- KEY_MOD_ANY = 1 << 5
+ KEY_MOD_NONE = 0 << 0,
+ KEY_MOD_CTRL = 1 << 0,
+ KEY_MOD_ALT = 1 << 1,
+ KEY_MOD_SHIFT = 1 << 2,
+ KEY_MOD_LOGO = 1 << 3,
+ KEY_MOD_ANY = 1 << 4
} ModMask;
@@ -73,6 +73,7 @@ typedef struct {
uint32_t button;
uint8_t click_combo;
uint32_t tclick;
+ uint32_t state;
} buttons;
} pointer;
struct {