diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-03-09 14:52:27 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-03-17 18:16:14 +0000 |
commit | bd6c000d142fe6a8e893f1cdd2d5eb0b9d2ac7b8 (patch) | |
tree | b29050c0fe2962076b92ffc124cfdc1c3ba8f8f2 /backend/x11 | |
parent | 96ccc50c5753346e852625fe37418a54386c7804 (diff) |
types/wlr_pointer: uniformize events name
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/input_device.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/x11/input_device.c b/backend/x11/input_device.c index 77edf8ad..f9675fe0 100644 --- a/backend/x11/input_device.c +++ b/backend/x11/input_device.c @@ -31,8 +31,8 @@ static void send_key_event(struct wlr_x11_backend *x11, uint32_t key, static void send_button_event(struct wlr_x11_output *output, uint32_t key, enum wlr_button_state st, xcb_timestamp_t time) { - struct wlr_event_pointer_button ev = { - .device = &output->pointer.base, + struct wlr_pointer_button_event ev = { + .pointer = &output->pointer, .time_msec = time, .button = key, .state = st, @@ -43,8 +43,8 @@ static void send_button_event(struct wlr_x11_output *output, uint32_t key, static void send_axis_event(struct wlr_x11_output *output, int32_t delta, xcb_timestamp_t time) { - struct wlr_event_pointer_axis ev = { - .device = &output->pointer.base, + struct wlr_pointer_axis_event ev = { + .pointer = &output->pointer, .time_msec = time, .source = WLR_AXIS_SOURCE_WHEEL, .orientation = WLR_AXIS_ORIENTATION_VERTICAL, @@ -58,8 +58,8 @@ static void send_axis_event(struct wlr_x11_output *output, int32_t delta, static void send_pointer_position_event(struct wlr_x11_output *output, int16_t x, int16_t y, xcb_timestamp_t time) { - struct wlr_event_pointer_motion_absolute ev = { - .device = &output->pointer.base, + struct wlr_pointer_motion_absolute_event ev = { + .pointer = &output->pointer, .time_msec = time, .x = (double)x / output->wlr_output.width, .y = (double)y / output->wlr_output.height, |