diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 1 | ||||
-rw-r--r-- | include/sway/input/switch.h | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 4adce8ab..c5558c0d 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -39,6 +39,7 @@ enum binding_flags { | |||
39 | BINDING_CONTENTS=8, // mouse only; trigger on container contents | 39 | BINDING_CONTENTS=8, // mouse only; trigger on container contents |
40 | BINDING_TITLEBAR=16, // mouse only; trigger on container titlebar | 40 | BINDING_TITLEBAR=16, // mouse only; trigger on container titlebar |
41 | BINDING_CODE=32, // keyboard only; convert keysyms into keycodes | 41 | BINDING_CODE=32, // keyboard only; convert keysyms into keycodes |
42 | BINDING_RELOAD=62, // switch only; (re)trigger binding on reload | ||
42 | }; | 43 | }; |
43 | 44 | ||
44 | /** | 45 | /** |
diff --git a/include/sway/input/switch.h b/include/sway/input/switch.h index 19bb1e77..213b471d 100644 --- a/include/sway/input/switch.h +++ b/include/sway/input/switch.h | |||
@@ -4,16 +4,20 @@ | |||
4 | #include "sway/input/seat.h" | 4 | #include "sway/input/seat.h" |
5 | 5 | ||
6 | struct sway_switch { | 6 | struct sway_switch { |
7 | struct sway_seat_device *seat_device; | 7 | struct sway_seat_device *seat_device; |
8 | enum wlr_switch_state state; | ||
9 | enum wlr_switch_type type; | ||
8 | 10 | ||
9 | struct wl_listener switch_toggle; | 11 | struct wl_listener switch_toggle; |
10 | }; | 12 | }; |
11 | 13 | ||
12 | struct sway_switch *sway_switch_create(struct sway_seat *seat, | 14 | struct sway_switch *sway_switch_create(struct sway_seat *seat, |
13 | struct sway_seat_device *device); | 15 | struct sway_seat_device *device); |
14 | 16 | ||
15 | void sway_switch_configure(struct sway_switch *sway_switch); | 17 | void sway_switch_configure(struct sway_switch *sway_switch); |
16 | 18 | ||
17 | void sway_switch_destroy(struct sway_switch *sway_switch); | 19 | void sway_switch_destroy(struct sway_switch *sway_switch); |
18 | 20 | ||
21 | void sway_switch_retrigger_bindings_for_all(void); | ||
22 | |||
19 | #endif | 23 | #endif |