s/lid_switch/switch_device

Rename lid_switch to switch_device to disambiguate lid and tablet mode switches.
This commit is contained in:
Ryan Walklin 2019-03-20 09:41:20 +11:00 committed by Brian Ashworth
parent 6b7f5e4010
commit 4453757fc9
10 changed files with 45 additions and 45 deletions

View file

@ -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

View file

@ -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

View file

@ -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;