aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2020-03-27 18:17:15 +0100
committerLibravatar Drew DeVault <sir@cmpwn.com>2020-03-29 20:58:15 +0200
commit5e41e6600beb7e80b5c621021e0b61a2a1dc0ac0 (patch)
tree591e196e3f73998e332a4e026bd3c13e417a0276 /sway/config.c
parentswitched to setting focus with seat_set_focus (diff)
downloadsway-5e41e6600beb7e80b5c621021e0b61a2a1dc0ac0.tar.gz
sway-5e41e6600beb7e80b5c621021e0b61a2a1dc0ac0.tar.zst
sway-5e41e6600beb7e80b5c621021e0b61a2a1dc0ac0.zip
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/config.c')
-rw-r--r--sway/config.c1
1 files changed, 1 insertions, 0 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) {
241 if (!(config->font = strdup("monospace 10"))) goto cleanup; 241 if (!(config->font = strdup("monospace 10"))) goto cleanup;
242 config->font_height = 17; // height of monospace 10 242 config->font_height = 17; // height of monospace 10
243 config->urgent_timeout = 500; 243 config->urgent_timeout = 500;
244 config->focus_on_window_activation = FOWA_URGENT;
244 config->popup_during_fullscreen = POPUP_SMART; 245 config->popup_during_fullscreen = POPUP_SMART;
245 config->xwayland = XWAYLAND_MODE_LAZY; 246 config->xwayland = XWAYLAND_MODE_LAZY;
246 247