aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorRyan Walklin <ryan@testtoast.com>2018-11-28 20:03:42 +0000
committerRyan Walklin <ryan@crackotage.local>2018-12-15 14:42:35 +1100
commit810c7b700cfb381457ad1e5a07f184f4efdcc5d1 (patch)
treee7f909e9bac6ab8acaa6d5540a534088084fdebd /include/wlr
parent62a9cf87fafdbc5f271ea1489f3d3f6bd7288b6e (diff)
Working switches in rootston:
Factor out switch handling to separate file Add formal enum for toggle action Implement binding actions
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_switch.h3
1 files changed, 2 insertions, 1 deletions
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 {