From 13d7fa2f03452ef5b1f34cdf7847476052532178 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Wed, 9 Mar 2022 15:08:20 -0500 Subject: types/wlr_switch: uniformize events name --- backend/libinput/switch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backend/libinput') 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; -- cgit v1.2.3