aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-09 15:16:04 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 18:16:14 +0000
commitd1f543a9d87f354e5ad8f942933dba3edb54ffed (patch)
treef173e1ecb594a223e69d2f4b7196d3c6f56aabc1 /backend
parent13d7fa2f03452ef5b1f34cdf7847476052532178 (diff)
types/wlr_tablet_pad: uniformize events name
Diffstat (limited to 'backend')
-rw-r--r--backend/libinput/tablet_pad.c6
-rw-r--r--backend/wayland/tablet_v2.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/backend/libinput/tablet_pad.c b/backend/libinput/tablet_pad.c
index 87abd454..083711ef 100644
--- a/backend/libinput/tablet_pad.c
+++ b/backend/libinput/tablet_pad.c
@@ -145,7 +145,7 @@ void handle_tablet_pad_button(struct libinput_event *event,
struct wlr_tablet_pad *tablet_pad) {
struct libinput_event_tablet_pad *pevent =
libinput_event_get_tablet_pad_event(event);
- struct wlr_event_tablet_pad_button wlr_event = { 0 };
+ struct wlr_tablet_pad_button_event wlr_event = { 0 };
wlr_event.time_msec =
usec_to_msec(libinput_event_tablet_pad_get_time_usec(pevent));
wlr_event.button = libinput_event_tablet_pad_get_button_number(pevent);
@@ -167,7 +167,7 @@ void handle_tablet_pad_ring(struct libinput_event *event,
struct wlr_tablet_pad *tablet_pad) {
struct libinput_event_tablet_pad *pevent =
libinput_event_get_tablet_pad_event(event);
- struct wlr_event_tablet_pad_ring wlr_event = { 0 };
+ struct wlr_tablet_pad_ring_event wlr_event = { 0 };
wlr_event.time_msec =
usec_to_msec(libinput_event_tablet_pad_get_time_usec(pevent));
wlr_event.ring = libinput_event_tablet_pad_get_ring_number(pevent);
@@ -188,7 +188,7 @@ void handle_tablet_pad_strip(struct libinput_event *event,
struct wlr_tablet_pad *tablet_pad) {
struct libinput_event_tablet_pad *pevent =
libinput_event_get_tablet_pad_event(event);
- struct wlr_event_tablet_pad_strip wlr_event = { 0 };
+ struct wlr_tablet_pad_strip_event wlr_event = { 0 };
wlr_event.time_msec =
usec_to_msec(libinput_event_tablet_pad_get_time_usec(pevent));
wlr_event.strip = libinput_event_tablet_pad_get_strip_number(pevent);
diff --git a/backend/wayland/tablet_v2.c b/backend/wayland/tablet_v2.c
index 5666aa5f..04ce2377 100644
--- a/backend/wayland/tablet_v2.c
+++ b/backend/wayland/tablet_v2.c
@@ -99,7 +99,7 @@ static void handle_tablet_pad_ring_frame(void *data,
uint32_t time) {
struct tablet_pad_ring *ring = data;
- struct wlr_event_tablet_pad_ring evt = {
+ struct wlr_tablet_pad_ring_event evt = {
.time_msec = time,
.source = ring->source,
.ring = ring->index,
@@ -152,7 +152,7 @@ static void handle_tablet_pad_strip_frame(void *data,
uint32_t time) {
struct tablet_pad_strip *strip = data;
- struct wlr_event_tablet_pad_strip evt = {
+ struct wlr_tablet_pad_strip_event evt = {
.time_msec = time,
.source = strip->source,
.strip = strip->index,
@@ -337,7 +337,7 @@ static void handle_tablet_pad_button(void *data,
struct zwp_tablet_pad_v2 *zwp_tablet_pad_v2,
uint32_t time, uint32_t button, uint32_t state) {
struct wlr_wl_seat *seat = data;
- struct wlr_event_tablet_pad_button evt = {
+ struct wlr_tablet_pad_button_event evt = {
.time_msec = time,
.button = button,
.state = state,