Working switches in rootston:

Factor out switch handling to separate file
Add formal enum for toggle action
Implement binding actions
This commit is contained in:
Ryan Walklin 2018-11-28 20:03:42 +00:00 committed by Ryan Walklin
parent 62a9cf87fa
commit 810c7b700c
7 changed files with 60 additions and 16 deletions

View file

@ -33,7 +33,8 @@ enum wlr_switch_type {
enum wlr_switch_state {
WLR_SWITCH_STATE_OFF = 0,
WLR_SWITCH_STATE_ON = 1,
WLR_SWITCH_STATE_ON,
WLR_SWITCH_STATE_TOGGLE
};
struct wlr_event_switch_toggle {