diff options
author | Ryan Walklin <ryan@testtoast.com> | 2019-03-20 09:41:20 +1100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-19 22:45:58 -0400 |
commit | 4453757fc9fa357288423ef3b54af3a1d7f35366 (patch) | |
tree | c371e580a6df27dd82e74da6b8b0509a0d4107e3 /backend/headless | |
parent | 6b7f5e4010103bffaf4666b77f7a4369295588d8 (diff) |
s/lid_switch/switch_device
Rename lid_switch to switch_device to disambiguate lid and tablet mode switches.
Diffstat (limited to 'backend/headless')
-rw-r--r-- | backend/headless/input_device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/headless/input_device.c b/backend/headless/input_device.c index 827c6ee4..76e69c52 100644 --- a/backend/headless/input_device.c +++ b/backend/headless/input_device.c @@ -78,12 +78,12 @@ struct wlr_input_device *wlr_headless_add_input_device( wlr_tablet_pad_init(wlr_device->tablet_pad, NULL); break; case WLR_INPUT_DEVICE_SWITCH: - wlr_device->lid_switch = calloc(1, sizeof(struct wlr_switch)); - if (wlr_device->lid_switch == NULL) { + wlr_device->switch_device = calloc(1, sizeof(struct wlr_switch)); + if (wlr_device->switch_device == NULL) { wlr_log(WLR_ERROR, "Unable to allocate wlr_switch"); goto error; } - wlr_switch_init(wlr_device->lid_switch, NULL); + wlr_switch_init(wlr_device->switch_device, NULL); } wl_list_insert(&backend->input_devices, &wlr_device->link); |