aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/switch.c
diff options
context:
space:
mode:
authorRyan Walklin <ryan@testtoast.com>2019-03-20 09:41:20 +1100
committerBrian Ashworth <bosrsf04@gmail.com>2019-03-19 22:45:58 -0400
commit4453757fc9fa357288423ef3b54af3a1d7f35366 (patch)
treec371e580a6df27dd82e74da6b8b0509a0d4107e3 /backend/libinput/switch.c
parent6b7f5e4010103bffaf4666b77f7a4369295588d8 (diff)
s/lid_switch/switch_device
Rename lid_switch to switch_device to disambiguate lid and tablet mode switches.
Diffstat (limited to 'backend/libinput/switch.c')
-rw-r--r--backend/libinput/switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/libinput/switch.c b/backend/libinput/switch.c
index 393460b0..a9c33d3a 100644
--- a/backend/libinput/switch.c
+++ b/backend/libinput/switch.c
@@ -29,7 +29,7 @@ void handle_switch_toggle(struct libinput_event *event,
wlr_log(WLR_DEBUG, "Got a switch event for a device with no switch?");
return;
}
- struct libinput_event_switch *sevent =
+ struct libinput_event_switch *sevent =
libinput_event_get_switch_event (event);
struct wlr_event_switch_toggle wlr_event = { 0 };
wlr_event.device = wlr_dev;
@@ -51,5 +51,5 @@ void handle_switch_toggle(struct libinput_event *event,
}
wlr_event.time_msec =
usec_to_msec(libinput_event_switch_get_time_usec(sevent));
- wlr_signal_emit_safe(&wlr_dev->lid_switch->events.toggle, &wlr_event);
+ wlr_signal_emit_safe(&wlr_dev->switch_device->events.toggle, &wlr_event);
}