aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h1
-rw-r--r--include/sway/input/switch.h10
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 {
BINDING_CONTENTS=8, // mouse only; trigger on container contents
BINDING_TITLEBAR=16, // mouse only; trigger on container titlebar
BINDING_CODE=32, // keyboard only; convert keysyms into keycodes
+ BINDING_RELOAD=62, // switch only; (re)trigger binding on reload
};
/**
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 @@
#include "sway/input/seat.h"
struct sway_switch {
- struct sway_seat_device *seat_device;
+ struct sway_seat_device *seat_device;
+ enum wlr_switch_state state;
+ enum wlr_switch_type type;
- struct wl_listener switch_toggle;
+ struct wl_listener switch_toggle;
};
struct sway_switch *sway_switch_create(struct sway_seat *seat,
- struct sway_seat_device *device);
+ struct sway_seat_device *device);
void sway_switch_configure(struct sway_switch *sway_switch);
void sway_switch_destroy(struct sway_switch *sway_switch);
+void sway_switch_retrigger_bindings_for_all(void);
+
#endif