Mouse position during alt-tab leads to unexpected behavior
Affected version
Debian Sid, Gnome Shell 3.38.1-1, Xorg
Bug summary
Bringing up the switcher (alt-tab maintained for > 1s) when the mouse cursor happens to be in the central area puts automatically the focus on the program appearing under the mouse cursor while the mouse is not used and not moving!.
Bringing up the switcher (alt-tab maintained for > 2s) when the mouse cursor happens to be in the lower area puts automatically the focus on the program instance (if the program under focus contains multiple windows displayed in the lower area) appearing under the mouse cursor while the mouse is not used and not moving!.
The bug was briefly mentioned in the thread of this bugreport: #1506 (comment 586116) but because that other bugreport is about a slightly different problem (request to ignore a mouse cursor while it's moving), I preferred to open a new ticket to highlight this issue.
Current workaround mentioned in the threat mentioned above:
I usually use alt-tab to avoid having to reach for the mouse, but since updating to 3.32 I've developed the habit of first moving the cursor away from the centre of the screen before alt-tabbing (and/or forehead slapping if I forget).
No need to say that it's pretty unacceptable workaround... My forehead is already painfully red.
Steps to reproduce
As said above
What happened
Selecting a window depending on where the mouse cursor happened to be by chance prior to alt-tab (even when the mouse cursor is invisible as the mouse is not being used)
What did you expect to happen
Ignore mouse cursor when the mouse is not used
Relevant logs, screenshots, screencasts etc.
Description should be sufficient but I can do a screencast if required