diff options
author | Simon Ser <contact@emersion.fr> | 2020-03-27 18:17:15 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-03-29 20:58:15 +0200 |
commit | 5e41e6600beb7e80b5c621021e0b61a2a1dc0ac0 (patch) | |
tree | 591e196e3f73998e332a4e026bd3c13e417a0276 /sway | |
parent | 63e45bf3217a484775f24f14c05d228c79348b7a (diff) |
Change focus_on_window_activation default to urgent
Before the default was "smart". This means a visible app could steal focus
whenever it wanted to. This can be an issue since having focus allows for
e.g. clipboard access.
This commit changes the default to "urgent" instead.
Closes: https://github.com/swaywm/sway/issues/5139
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config.c | 1 | ||||
-rw-r--r-- | sway/sway.5.scd | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index c20625cf..b94887a7 100644 --- a/sway/config.c +++ b/sway/config.c @@ -241,6 +241,7 @@ static void config_defaults(struct sway_config *config) { if (!(config->font = strdup("monospace 10"))) goto cleanup; config->font_height = 17; // height of monospace 10 config->urgent_timeout = 500; + config->focus_on_window_activation = FOWA_URGENT; config->popup_during_fullscreen = POPUP_SMART; config->xwayland = XWAYLAND_MODE_LAZY; diff --git a/sway/sway.5.scd b/sway/sway.5.scd index 1663033c..c9daba5d 100644 --- a/sway/sway.5.scd +++ b/sway/sway.5.scd @@ -580,7 +580,7 @@ The default colors are: window activation. If set to _urgent_, the urgent state will be set for that window. If set to _focus_, the window will become focused. If set to _smart_, the window will become focused only if it is already - visible, otherwise the urgent state will be set. Default is _smart_. + visible, otherwise the urgent state will be set. Default is _urgent_. *focus_wrapping* yes|no|force|workspace This option determines what to do when attempting to focus over the edge |