diff options
-rw-r--r-- | backend/libinput/keyboard.c | 2 | ||||
-rw-r--r-- | backend/wayland/seat.c | 6 | ||||
-rw-r--r-- | backend/x11/input_device.c | 2 | ||||
-rw-r--r-- | examples/multi-pointer.c | 2 | ||||
-rw-r--r-- | examples/output-layout.c | 2 | ||||
-rw-r--r-- | examples/pointer.c | 2 | ||||
-rw-r--r-- | examples/quads.c | 2 | ||||
-rw-r--r-- | examples/rotation.c | 2 | ||||
-rw-r--r-- | examples/simple.c | 2 | ||||
-rw-r--r-- | examples/tablet.c | 2 | ||||
-rw-r--r-- | examples/touch.c | 2 | ||||
-rw-r--r-- | include/types/wlr_keyboard.h | 2 | ||||
-rw-r--r-- | include/wlr/interfaces/wlr_keyboard.h | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_keyboard.h | 2 | ||||
-rw-r--r-- | tinywl/tinywl.c | 2 | ||||
-rw-r--r-- | types/wlr_keyboard.c | 6 | ||||
-rw-r--r-- | types/wlr_keyboard_group.c | 4 | ||||
-rw-r--r-- | types/wlr_virtual_keyboard_v1.c | 2 |
18 files changed, 23 insertions, 23 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, diff --git a/examples/multi-pointer.c b/examples/multi-pointer.c index d44df2a1..d6189f29 100644 --- a/examples/multi-pointer.c +++ b/examples/multi-pointer.c @@ -185,7 +185,7 @@ static void new_output_notify(struct wl_listener *listener, void *data) { static void keyboard_key_notify(struct wl_listener *listener, void *data) { struct sample_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct sample_state *sample = keyboard->sample; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; uint32_t keycode = event->keycode + 8; const xkb_keysym_t *syms; int nsyms = xkb_state_key_get_syms(keyboard->device->keyboard->xkb_state, diff --git a/examples/output-layout.c b/examples/output-layout.c index bc5cb7e9..a057ca78 100644 --- a/examples/output-layout.c +++ b/examples/output-layout.c @@ -183,7 +183,7 @@ static void new_output_notify(struct wl_listener *listener, void *data) { static void keyboard_key_notify(struct wl_listener *listener, void *data) { struct sample_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct sample_state *sample = keyboard->sample; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; uint32_t keycode = event->keycode + 8; const xkb_keysym_t *syms; int nsyms = xkb_state_key_get_syms(keyboard->device->keyboard->xkb_state, diff --git a/examples/pointer.c b/examples/pointer.c index af14178c..d22047de 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -228,7 +228,7 @@ static void handle_tablet_tool_axis(struct wl_listener *listener, void *data) { static void keyboard_key_notify(struct wl_listener *listener, void *data) { struct sample_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct sample_state *sample = keyboard->state; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; uint32_t keycode = event->keycode + 8; const xkb_keysym_t *syms; int nsyms = xkb_state_key_get_syms(keyboard->device->keyboard->xkb_state, diff --git a/examples/quads.c b/examples/quads.c index d74ef25e..88c59f7c 100644 --- a/examples/quads.c +++ b/examples/quads.c @@ -129,7 +129,7 @@ static void new_output_notify(struct wl_listener *listener, void *data) { static void keyboard_key_notify(struct wl_listener *listener, void *data) { struct sample_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct sample_state *sample = keyboard->sample; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; uint32_t keycode = event->keycode + 8; const xkb_keysym_t *syms; int nsyms = xkb_state_key_get_syms(keyboard->device->keyboard->xkb_state, diff --git a/examples/rotation.c b/examples/rotation.c index cc1cfbb5..a2e868af 100644 --- a/examples/rotation.c +++ b/examples/rotation.c @@ -134,7 +134,7 @@ static void new_output_notify(struct wl_listener *listener, void *data) { static void keyboard_key_notify(struct wl_listener *listener, void *data) { struct sample_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct sample_state *sample = keyboard->sample; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; uint32_t keycode = event->keycode + 8; const xkb_keysym_t *syms; int nsyms = xkb_state_key_get_syms(keyboard->device->keyboard->xkb_state, diff --git a/examples/simple.c b/examples/simple.c index 94f3abe0..e46093be 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -109,7 +109,7 @@ static void new_output_notify(struct wl_listener *listener, void *data) { static void keyboard_key_notify(struct wl_listener *listener, void *data) { struct sample_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct sample_state *sample = keyboard->sample; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; uint32_t keycode = event->keycode + 8; const xkb_keysym_t *syms; int nsyms = xkb_state_key_get_syms(keyboard->device->keyboard->xkb_state, diff --git a/examples/tablet.c b/examples/tablet.c index dd48983d..05fbc773 100644 --- a/examples/tablet.c +++ b/examples/tablet.c @@ -261,7 +261,7 @@ static void new_output_notify(struct wl_listener *listener, void *data) { static void keyboard_key_notify(struct wl_listener *listener, void *data) { struct sample_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct sample_state *sample = keyboard->sample; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; uint32_t keycode = event->keycode + 8; const xkb_keysym_t *syms; int nsyms = xkb_state_key_get_syms(keyboard->device->keyboard->xkb_state, diff --git a/examples/touch.c b/examples/touch.c index ae2dcf8f..5984c500 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -172,7 +172,7 @@ static void new_output_notify(struct wl_listener *listener, void *data) { static void keyboard_key_notify(struct wl_listener *listener, void *data) { struct sample_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct sample_state *sample = keyboard->sample; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; uint32_t keycode = event->keycode + 8; const xkb_keysym_t *syms; int nsyms = xkb_state_key_get_syms(keyboard->device->keyboard->xkb_state, diff --git a/include/types/wlr_keyboard.h b/include/types/wlr_keyboard.h index edcfec49..7cd26e8a 100644 --- a/include/types/wlr_keyboard.h +++ b/include/types/wlr_keyboard.h @@ -1,7 +1,7 @@ #include <wlr/types/wlr_keyboard.h> void keyboard_key_update(struct wlr_keyboard *keyboard, - struct wlr_event_keyboard_key *event); + struct wlr_keyboard_key_event *event); bool keyboard_modifier_update(struct wlr_keyboard *keyboard); diff --git a/include/wlr/interfaces/wlr_keyboard.h b/include/wlr/interfaces/wlr_keyboard.h index 3f4c4255..06b07989 100644 --- a/include/wlr/interfaces/wlr_keyboard.h +++ b/include/wlr/interfaces/wlr_keyboard.h @@ -26,7 +26,7 @@ void wlr_keyboard_init(struct wlr_keyboard *keyboard, void wlr_keyboard_finish(struct wlr_keyboard *keyboard); void wlr_keyboard_notify_key(struct wlr_keyboard *keyboard, - struct wlr_event_keyboard_key *event); + struct wlr_keyboard_key_event *event); void wlr_keyboard_notify_modifiers(struct wlr_keyboard *keyboard, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group); diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h index 063d6e3f..d8415933 100644 --- a/include/wlr/types/wlr_keyboard.h +++ b/include/wlr/types/wlr_keyboard.h @@ -94,7 +94,7 @@ struct wlr_keyboard { void *data; }; -struct wlr_event_keyboard_key { +struct wlr_keyboard_key_event { uint32_t time_msec; uint32_t keycode; bool update_state; // if backend doesn't update modifiers on its own diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index fae16ac0..da965c4c 100644 --- a/tinywl/tinywl.c +++ b/tinywl/tinywl.c @@ -188,7 +188,7 @@ static void keyboard_handle_key( struct tinywl_keyboard *keyboard = wl_container_of(listener, keyboard, key); struct tinywl_server *server = keyboard->server; - struct wlr_event_keyboard_key *event = data; + struct wlr_keyboard_key_event *event = data; struct wlr_seat *seat = server->seat; /* Translate libinput keycode -> xkbcommon */ diff --git a/types/wlr_keyboard.c b/types/wlr_keyboard.c index 52d9a06d..df99e8ba 100644 --- a/types/wlr_keyboard.c +++ b/types/wlr_keyboard.c @@ -61,7 +61,7 @@ bool keyboard_modifier_update(struct wlr_keyboard *keyboard) { } void keyboard_key_update(struct wlr_keyboard *keyboard, - struct wlr_event_keyboard_key *event) { + struct wlr_keyboard_key_event *event) { if (event->state == WL_KEYBOARD_KEY_STATE_PRESSED) { set_add(keyboard->keycodes, &keyboard->num_keycodes, WLR_KEYBOARD_KEYS_CAP, event->keycode); @@ -92,7 +92,7 @@ void wlr_keyboard_notify_modifiers(struct wlr_keyboard *keyboard, } void wlr_keyboard_notify_key(struct wlr_keyboard *keyboard, - struct wlr_event_keyboard_key *event) { + struct wlr_keyboard_key_event *event) { keyboard_key_update(keyboard, event); wlr_signal_emit_safe(&keyboard->events.key, event); @@ -137,7 +137,7 @@ void wlr_keyboard_finish(struct wlr_keyboard *kb) { size_t orig_num_keycodes = kb->num_keycodes; for (size_t i = 0; i < orig_num_keycodes; ++i) { assert(kb->num_keycodes == orig_num_keycodes - i); - struct wlr_event_keyboard_key event = { + struct wlr_keyboard_key_event event = { .time_msec = get_current_time_msec(), .keycode = kb->keycodes[orig_num_keycodes - i - 1], .update_state = false, diff --git a/types/wlr_keyboard_group.c b/types/wlr_keyboard_group.c index 7f575810..5261c141 100644 --- a/types/wlr_keyboard_group.c +++ b/types/wlr_keyboard_group.c @@ -69,7 +69,7 @@ struct wlr_keyboard_group *wlr_keyboard_group_from_wlr_keyboard( } static bool process_key(struct keyboard_group_device *group_device, - struct wlr_event_keyboard_key *event) { + struct wlr_keyboard_key_event *event) { struct wlr_keyboard_group *group = group_device->keyboard->group; struct keyboard_group_key *key, *tmp; @@ -188,7 +188,7 @@ static void refresh_state(struct keyboard_group_device *device, for (size_t i = 0; i < device->keyboard->num_keycodes; i++) { struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); - struct wlr_event_keyboard_key event = { + struct wlr_keyboard_key_event event = { .time_msec = (int64_t)now.tv_sec * 1000 + now.tv_nsec / 1000000, .keycode = device->keyboard->keycodes[i], .update_state = true, diff --git a/types/wlr_virtual_keyboard_v1.c b/types/wlr_virtual_keyboard_v1.c index 01f7d6dc..791557db 100644 --- a/types/wlr_virtual_keyboard_v1.c +++ b/types/wlr_virtual_keyboard_v1.c @@ -78,7 +78,7 @@ static void virtual_keyboard_key(struct wl_client *client, "Cannot send a keypress before defining a keymap"); return; } - struct wlr_event_keyboard_key event = { + struct wlr_keyboard_key_event event = { .time_msec = time, .keycode = key, .update_state = false, |