aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/config.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 00b5f25b..bc02c0fd 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -239,6 +239,12 @@ struct bar_config {
} colors;
};
+struct bar_binding {
+ uint32_t button;
+ bool release;
+ char *command;
+};
+
struct border_colors {
float border[4];
float background[4];
@@ -325,6 +331,12 @@ enum focus_wrapping_mode {
WRAP_FORCE
};
+enum mouse_warping_mode {
+ WARP_NO,
+ WARP_OUTPUT,
+ WARP_CONTAINER
+};
+
/**
* The configuration struct. The result of loading a config file.
*/
@@ -366,7 +378,7 @@ struct sway_config {
// Flags
bool focus_follows_mouse;
bool raise_floating;
- bool mouse_warping;
+ enum mouse_warping_mode mouse_warping;
enum focus_wrapping_mode focus_wrapping;
bool active;
bool failed;
@@ -527,6 +539,8 @@ struct bar_config *default_bar_config(void);
void free_bar_config(struct bar_config *bar);
+void free_bar_binding(struct bar_binding *binding);
+
void free_workspace_config(struct workspace_config *wsc);
/**