Using key binding to lower window retains focus
Affected version (1)
- Fedora 38
- mutter-44.5-1.fc38.x86_64
- Wayland (but the bug does not happen with X11)
Affected version (2)
- Fedora 39
- mutter-45.5
- X11
Bug summary
With "Focus on hover", if you lower a window using a keyboard shortcut then the new top window does not get focus.
Steps to reproduce
- (Use Wayland with mutter-44.5 as the bug does not reproduce with X11. Or use X11 with mutter-45.5.)
- Set "Window Focus" mode "Focus on Hover" in "Tweaks".
- Add a keyboard shortcut to lower the window: in "Settings" -> "Keyboard" -> "Keyboard shortcuts" -> "Windows" -> "lower window below other windows", set the shortcut e.g. to SUPER + DOWN.
- Open two windows, e.g. Terminals, and move them so that they overlap.
- Move the mouse cursor over a part of the window that is overlapped (i.e. so that it is above both windows).
- Press the shortcut key you set for "lower window below other windows".
What happened
Mutter will lower the window. The focus is still on the window which was originally on top and is now lowered.
What did you expect to happen
Mutter will lower the window. The focus should change to the other window which is now on top, because the mouse cursor is over it.
(This is the behavior seen in previous versions.)
Relevant logs, screenshots, screencasts etc.
Edited by Ben Cohen