aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2022-03-08 16:24:27 +0100
committerLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2022-03-08 13:24:11 -0500
commit04676936e71f6fccccb098f3232d16572b140902 (patch)
treeaf19eb7696ba9c01491f307255c7f34d0a9f1aac /include
parentcommands/focus: fix segfault when no container is already focused. (diff)
downloadsway-04676936e71f6fccccb098f3232d16572b140902.tar.gz
sway-04676936e71f6fccccb098f3232d16572b140902.tar.zst
sway-04676936e71f6fccccb098f3232d16572b140902.zip
Remove WLR_SWITCH_STATE_TOGGLE usage
Ref [1]. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4792446ee8f50104bd207d9ccd8558a7e4eb4514
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index fda0e83f..538930f2 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -70,12 +70,18 @@ struct sway_mouse_binding {
70 char *command; 70 char *command;
71}; 71};
72 72
73enum sway_switch_trigger {
74 SWAY_SWITCH_TRIGGER_OFF,
75 SWAY_SWITCH_TRIGGER_ON,
76 SWAY_SWITCH_TRIGGER_TOGGLE,
77};
78
73/** 79/**
74 * A laptop switch binding and an associated command. 80 * A laptop switch binding and an associated command.
75 */ 81 */
76struct sway_switch_binding { 82struct sway_switch_binding {
77 enum wlr_switch_type type; 83 enum wlr_switch_type type;
78 enum wlr_switch_state state; 84 enum sway_switch_trigger trigger;
79 uint32_t flags; 85 uint32_t flags;
80 char *command; 86 char *command;
81}; 87};