aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-09 15:05:12 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 18:16:14 +0000
commit9a17200446952f67b10b7801a272b6abdd1ae8b3 (patch)
tree242489591ded3ee482b2ae492e535309224b09f4 /backend
parentbd6c000d142fe6a8e893f1cdd2d5eb0b9d2ac7b8 (diff)
types/wlr_keyboard: uniformize events name
Diffstat (limited to 'backend')
-rw-r--r--backend/libinput/keyboard.c2
-rw-r--r--backend/wayland/seat.c6
-rw-r--r--backend/x11/input_device.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c
index 210fd450..789260d5 100644
--- a/backend/libinput/keyboard.c
+++ b/backend/libinput/keyboard.c
@@ -36,7 +36,7 @@ void handle_keyboard_key(struct libinput_event *event,
struct wlr_keyboard *kb) {
struct libinput_event_keyboard *kbevent =
libinput_event_get_keyboard_event(event);
- struct wlr_event_keyboard_key wlr_event = { 0 };
+ struct wlr_keyboard_key_event wlr_event = { 0 };
wlr_event.time_msec =
usec_to_msec(libinput_event_keyboard_get_time_usec(kbevent));
wlr_event.keycode = libinput_event_keyboard_get_key(kbevent);
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c
index 33a7383c..9659efc3 100644
--- a/backend/wayland/seat.c
+++ b/backend/wayland/seat.c
@@ -32,7 +32,7 @@ static void keyboard_handle_enter(void *data, struct wl_keyboard *wl_keyboard,
uint32_t *keycode_ptr;
wl_array_for_each(keycode_ptr, keys) {
- struct wlr_event_keyboard_key event = {
+ struct wlr_keyboard_key_event event = {
.keycode = *keycode_ptr,
.state = WL_KEYBOARD_KEY_STATE_PRESSED,
.time_msec = get_current_time_msec(),
@@ -54,7 +54,7 @@ static void keyboard_handle_leave(void *data, struct wl_keyboard *wl_keyboard,
for (size_t i = 0; i < num_keycodes; ++i) {
uint32_t keycode = pressed[i];
- struct wlr_event_keyboard_key event = {
+ struct wlr_keyboard_key_event event = {
.keycode = keycode,
.state = WL_KEYBOARD_KEY_STATE_RELEASED,
.time_msec = get_current_time_msec(),
@@ -68,7 +68,7 @@ static void keyboard_handle_key(void *data, struct wl_keyboard *wl_keyboard,
uint32_t serial, uint32_t time, uint32_t key, uint32_t state) {
struct wlr_keyboard *keyboard = data;
- struct wlr_event_keyboard_key wlr_event = {
+ struct wlr_keyboard_key_event wlr_event = {
.keycode = key,
.state = state,
.time_msec = time,
diff --git a/backend/x11/input_device.c b/backend/x11/input_device.c
index f9675fe0..dac867f9 100644
--- a/backend/x11/input_device.c
+++ b/backend/x11/input_device.c
@@ -20,7 +20,7 @@
static void send_key_event(struct wlr_x11_backend *x11, uint32_t key,
enum wl_keyboard_key_state st, xcb_timestamp_t time) {
- struct wlr_event_keyboard_key ev = {
+ struct wlr_keyboard_key_event ev = {
.time_msec = time,
.keycode = key,
.state = st,