mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-17 06:59:43 -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
|
|
@ -12,7 +12,7 @@ struct roots_switch {
|
|||
struct wl_list link;
|
||||
};
|
||||
|
||||
void roots_switch_handle_toggle(struct roots_switch *lid_switch,
|
||||
void roots_switch_handle_toggle(struct roots_switch *switch_device,
|
||||
struct wlr_event_switch_toggle *event);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@
|
|||
#include <wlr/types/wlr_switch.h>
|
||||
|
||||
struct wlr_switch_impl {
|
||||
void (*destroy)(struct wlr_switch *lid_switch);
|
||||
void (*destroy)(struct wlr_switch *switch_device);
|
||||
};
|
||||
|
||||
void wlr_switch_init(struct wlr_switch *lid_switch,
|
||||
void wlr_switch_init(struct wlr_switch *switch_device,
|
||||
struct wlr_switch_impl *impl);
|
||||
void wlr_switch_destroy(struct wlr_switch *lid_switch);
|
||||
void wlr_switch_destroy(struct wlr_switch *switch_device);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ struct wlr_input_device {
|
|||
void *_device;
|
||||
struct wlr_keyboard *keyboard;
|
||||
struct wlr_pointer *pointer;
|
||||
struct wlr_switch *lid_switch;
|
||||
struct wlr_switch *switch_device;
|
||||
struct wlr_touch *touch;
|
||||
struct wlr_tablet *tablet;
|
||||
struct wlr_tablet_pad *tablet_pad;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue