summaryrefslogtreecommitdiff
path: root/include/sway/config.h
diff options
context:
space:
mode:
authoremersion <[email protected]>2018-09-02 21:41:24 +0200
committerGitHub <[email protected]>2018-09-02 21:41:24 +0200
commite438342157272f6a807ea28ef1b554e01530ead8 (patch)
treefb510fe69ef12a9de9d299fa1543c32b49a16e8e /include/sway/config.h
parent159edc6d13db42b15b28c7ea58cdf2371d29297d (diff)
parent6fb03817c9d2bd29697a91f92d680b0c6a2c5996 (diff)
Merge pull request #2560 from RyanDwyer/focus-on-window-activation
Implement focus_on_window_activation
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..4ee8c3c2 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -58,6 +58,16 @@ struct sway_mouse_binding {
};
/**
+ * Focus on window activation.
+ */
+enum sway_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 sway_fowa focus_on_window_activation;
// Flags
bool focus_follows_mouse;