aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/switch.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-09 15:08:20 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 18:16:14 +0000
commit13d7fa2f03452ef5b1f34cdf7847476052532178 (patch)
tree838d8e8d62d472d8785d398b15e6d40db94dce9c /backend/libinput/switch.c
parent9a17200446952f67b10b7801a272b6abdd1ae8b3 (diff)
types/wlr_switch: uniformize events name
Diffstat (limited to 'backend/libinput/switch.c')
-rw-r--r--backend/libinput/switch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/libinput/switch.c b/backend/libinput/switch.c
index 586ec0c8..2e89ed59 100644
--- a/backend/libinput/switch.c
+++ b/backend/libinput/switch.c
@@ -29,8 +29,7 @@ void handle_switch_toggle(struct libinput_event *event,
struct wlr_switch *wlr_switch) {
struct libinput_event_switch *sevent =
libinput_event_get_switch_event (event);
- struct wlr_event_switch_toggle wlr_event = { 0 };
- wlr_event.device = &wlr_switch->base;
+ struct wlr_switch_toggle_event wlr_event = { 0 };
switch (libinput_event_switch_get_switch(sevent)) {
case LIBINPUT_SWITCH_LID:
wlr_event.switch_type = WLR_SWITCH_TYPE_LID;