aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-10-21 17:21:23 +0200
committerSimon Ser <contact@emersion.fr>2020-11-11 10:58:38 +0100
commit7693f61d813869f7f8b3c658f610a16f6283b24f (patch)
treeab5df7c5da7bf1108eae9a2df6b248994ac5ee38 /include/wlr
parent238d1c078fb03338e9f271d98f7bf6b1fc399285 (diff)
Replace wlr_key_state with wl_keyboard_key_state
There's no reason to have duplicate enums
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_keyboard.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h
index c1a19a8e..b5111462 100644
--- a/include/wlr/types/wlr_keyboard.h
+++ b/include/wlr/types/wlr_keyboard.h
@@ -12,7 +12,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <wayland-server-core.h>
-#include <wayland-server-core.h>
+#include <wayland-server-protocol.h>
#include <xkbcommon/xkbcommon.h>
#define WLR_LED_COUNT 3
@@ -91,16 +91,11 @@ struct wlr_keyboard {
void *data;
};
-enum wlr_key_state {
- WLR_KEY_RELEASED,
- WLR_KEY_PRESSED,
-};
-
struct wlr_event_keyboard_key {
uint32_t time_msec;
uint32_t keycode;
bool update_state; // if backend doesn't update modifiers on its own
- enum wlr_key_state state;
+ enum wl_keyboard_key_state state;
};
bool wlr_keyboard_set_keymap(struct wlr_keyboard *kb,