mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
s/lid_switch/switch_device
Rename lid_switch to switch_device to disambiguate lid and tablet mode switches.
This commit is contained in:
parent
6b7f5e4010
commit
4453757fc9
10 changed files with 45 additions and 45 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue