From 03dc7e2df5d02d7d827ea8ff2153dc941622e5f1 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 27 Jun 2022 22:56:02 +0200 Subject: [PATCH] wlr_{keyboard,pointer,touch}: Update event docs Events used by our input devices were recently renamed from wlr_event_* to wlr_*_event, but the documentation and a single point of use was not updated accordingly. Regressed by: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3484 --- include/wlr/types/wlr_keyboard.h | 4 ++-- include/wlr/types/wlr_pointer.h | 24 ++++++++++++------------ include/wlr/types/wlr_touch.h | 8 ++++---- types/wlr_cursor.c | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h index 39449aea..d53d3c30 100644 --- a/include/wlr/types/wlr_keyboard.h +++ b/include/wlr/types/wlr_keyboard.h @@ -73,8 +73,8 @@ struct wlr_keyboard { struct { /** - * The `key` event signals with a struct wlr_event_keyboard_key_event - * that a key has been pressed or released on the keyboard. This event is + * The `key` event signals with a struct wlr_keyboard_key_event that a + * key has been pressed or released on the keyboard. This event is * emitted before the xkb state of the keyboard has been updated * (including modifiers). */ diff --git a/include/wlr/types/wlr_pointer.h b/include/wlr/types/wlr_pointer.h index 73e641fc..cce2a5a8 100644 --- a/include/wlr/types/wlr_pointer.h +++ b/include/wlr/types/wlr_pointer.h @@ -24,22 +24,22 @@ struct wlr_pointer { char *output_name; struct { - struct wl_signal motion; // struct wlr_event_pointer_motion - struct wl_signal motion_absolute; // struct wlr_event_pointer_motion_absolute - struct wl_signal button; // struct wlr_event_pointer_button - struct wl_signal axis; // struct wlr_event_pointer_axis + struct wl_signal motion; // struct wlr_pointer_motion_event + struct wl_signal motion_absolute; // struct wlr_pointer_motion_absolute_event + struct wl_signal button; // struct wlr_pointer_button_event + struct wl_signal axis; // struct wlr_pointer_axis_event struct wl_signal frame; - struct wl_signal swipe_begin; // struct wlr_event_pointer_swipe_begin - struct wl_signal swipe_update; // struct wlr_event_pointer_swipe_update - struct wl_signal swipe_end; // struct wlr_event_pointer_swipe_end + struct wl_signal swipe_begin; // struct wlr_pointer_swipe_begin_event + struct wl_signal swipe_update; // struct wlr_pointer_swipe_update_event + struct wl_signal swipe_end; // struct wlr_pointer_swipe_end_event - struct wl_signal pinch_begin; // struct wlr_event_pointer_pinch_begin - struct wl_signal pinch_update; // struct wlr_event_pointer_pinch_update - struct wl_signal pinch_end; // struct wlr_event_pointer_pinch_end + struct wl_signal pinch_begin; // struct wlr_pointer_pinch_begin_event + struct wl_signal pinch_update; // struct wlr_pointer_pinch_update_event + struct wl_signal pinch_end; // struct wlr_pointer_pinch_end_event - struct wl_signal hold_begin; // struct wlr_event_pointer_hold_begin - struct wl_signal hold_end; // struct wlr_event_pointer_hold_end + struct wl_signal hold_begin; // struct wlr_pointer_hold_begin_event + struct wl_signal hold_end; // struct wlr_pointer_hold_end_event } events; void *data; diff --git a/include/wlr/types/wlr_touch.h b/include/wlr/types/wlr_touch.h index da294f76..82c4b861 100644 --- a/include/wlr/types/wlr_touch.h +++ b/include/wlr/types/wlr_touch.h @@ -24,10 +24,10 @@ struct wlr_touch { double width_mm, height_mm; struct { - struct wl_signal down; // struct wlr_event_touch_down - struct wl_signal up; // struct wlr_event_touch_up - struct wl_signal motion; // struct wlr_event_touch_motion - struct wl_signal cancel; // struct wlr_event_touch_cancel + struct wl_signal down; // struct wlr_touch_down_event + struct wl_signal up; // struct wlr_touch_up_event + struct wl_signal motion; // struct wlr_touch_motion_event + struct wl_signal cancel; // struct wlr_touch_cancel_event struct wl_signal frame; } events; diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index fd3ae5f5..d38d279e 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -365,7 +365,7 @@ void wlr_cursor_set_surface(struct wlr_cursor *cur, struct wlr_surface *surface, } static void handle_pointer_motion(struct wl_listener *listener, void *data) { - struct wlr_event_pointer_motion *event = data; + struct wlr_pointer_motion_event *event = data; struct wlr_cursor_device *device = wl_container_of(listener, device, motion); wlr_signal_emit_safe(&device->cursor->events.motion, event);