summaryrefslogtreecommitdiff
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorRyan Dwyer <[email protected]>2018-09-02 15:03:58 +1000
committerRyan Dwyer <[email protected]>2018-09-02 18:20:34 +1000
commitf057a0195ee79dfcaeddbcab026c06e310998c75 (patch)
tree5c09cc286ae3a6d852341a0ae4796d28bb6155b0 /include/sway/config.h
parent159edc6d13db42b15b28c7ea58cdf2371d29297d (diff)
Implement focus_on_window_activation
Depends on https://github.com/swaywm/wlroots/pull/1223
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 18d10faa..45fa73c4 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -58,6 +58,16 @@ struct sway_mouse_binding {
};
/**
+ * Focus on window activation.
+ */
+enum fowa {
+ FOWA_SMART,
+ FOWA_URGENT,
+ FOWA_FOCUS,
+ FOWA_NONE,
+};
+
+/**
* A "mode" of keybindings created via the `mode` command.
*/
struct sway_mode {
@@ -340,6 +350,7 @@ struct sway_config {
size_t font_height;
bool pango_markup;
size_t urgent_timeout;
+ enum fowa focus_on_window_activation;
// Flags
bool focus_follows_mouse;