From 810c7b700cfb381457ad1e5a07f184f4efdcc5d1 Mon Sep 17 00:00:00 2001 From: Ryan Walklin Date: Wed, 28 Nov 2018 20:03:42 +0000 Subject: Working switches in rootston: Factor out switch handling to separate file Add formal enum for toggle action Implement binding actions --- include/wlr/types/wlr_switch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_switch.h b/include/wlr/types/wlr_switch.h index 52b631b5..df1c8579 100644 --- a/include/wlr/types/wlr_switch.h +++ b/include/wlr/types/wlr_switch.h @@ -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 { -- cgit v1.2.3