From 5e41e6600beb7e80b5c621021e0b61a2a1dc0ac0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 27 Mar 2020 18:17:15 +0100 Subject: 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 --- sway/config.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/config.c') 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; -- cgit v1.2.3-54-g00ecf