mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04: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
|
|
@ -174,8 +174,8 @@ static void handle_device_added(struct wlr_libinput_backend *backend,
|
|||
if (!wlr_dev) {
|
||||
goto fail;
|
||||
}
|
||||
wlr_dev->lid_switch = create_libinput_switch(libinput_dev);
|
||||
if (!wlr_dev->lid_switch) {
|
||||
wlr_dev->switch_device = create_libinput_switch(libinput_dev);
|
||||
if (!wlr_dev->switch_device) {
|
||||
free(wlr_dev);
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue