org.gnome.desktop.wm.preferences focus-new-windows 'strict' has no effect
Affected version
GNOME 41.3 / X11 on openSUSE Tumbleweed. Haven't checked wayland.
Bug summary
Windows like gedit or pidgin steal the keyboard focus even though
org.gnome.desktop.wm.preferences focus-new-windows 'strict'
is set
Steps to reproduce
(in terminal)
gedit & # hit ENTER
# continue typing
What happened
After some time the typed keys aren't echoed in the terminal any more but appear in the gedit window. Likewise with pidgin
, for example. It doesn't happen with emacs
, though.
What did you expect to happen
Focus remains with terminal.,
Relevant logs, screenshots, screencasts etc.
$ gsettings list-keys org.gnome.desktop.wm.preferences | egrep 'focus|raise' | while read x; do echo $x: $(gsettings get org.gnome.desktop.wm.preferences $x); done
focus-new-windows: 'strict'
raise-on-click: true
auto-raise: false
focus-mode: 'click'
auto-raise-delay: 500
This is very dangerous when typing passwords. See also openSUSE bug.
Even more dangerously, grabbing focus also happens with automatically raised windows under certain circumstances. For example, it happens when pidgin auto-joins a chat on a previously disconnected IRC server that has become available (because I activated the VPN that connects to the server). This happens a non-deterministic time span after the VPN connection was activated. This old pidgin ticket is related to the pidgin-specific part of the issue.