After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745380 - Repeated Alt-Tab fails to switch focus
Repeated Alt-Tab fails to switch focus
Status: RESOLVED DUPLICATE of bug 739718
Product: mutter
Classification: Core
Component: wayland
unspecified
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2015-03-01 18:59 UTC by Daniel Stone
Modified: 2020-04-17 18:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screencast showing the problem (164.66 KB, video/webm)
2018-04-01 10:00 UTC, Phillip Wood
Details

Description Daniel Stone 2015-03-01 18:59:26 UTC
SSIA. Running Shell's Wayland session on F22, pressing Alt-Tab repeatedly between gnome-terminal (Wayland native) and Chrome (XWayland), sometimes it will restack the windows but fail to actually switch focus. Moving the pointer (I have FFM enabled) will actually fix the focus.

mutter 3.15.90-1

http://static.fooishbar.org/tmp/shell-wayland-alt-tab-fails.mov
Comment 1 Daniel Stone 2015-09-23 10:20:07 UTC
Still present in 3.18.0.
Comment 2 Daniel Stone 2015-11-25 12:31:18 UTC
And in latter versions as well. As a fun datapoint, with the current setup:

eDP-1 (internal panel, primary): Chrome fullscreen
DP-1 (external): terminal part-screen

If I have my cursor over Chrome, Alt-Tab usually works fine. But sometimes not. If I have my cursor over the terminal, Alt-Tab basically always fails, and focus reverts to the terminal.
Comment 3 Rui Matos 2015-11-25 13:26:59 UTC
This sound like bug 756272 too
Comment 4 Daniel Stone 2015-11-25 13:45:35 UTC
It does sound like it, except I'm using an XWayland which forces CLOCK_MONOTONIC after discussing it with Jasper ... still no luck.
Comment 5 Phillip Wood 2016-06-07 09:11:27 UTC
I have the same problem with mutter 3.20.2 on Arch linux. I've applied CLOCK_MONOTONIC the patches from bug 756272 to mutter and xwayland but the problem is still there.
Comment 6 Daniel Stone 2018-03-28 13:40:02 UTC
This has worked for me for a long time, so assuming it's no longer a problem.
Comment 7 Phillip Wood 2018-04-01 09:56:34 UTC
I've just tested this with mutter 3.28.0 on arch linux and it is still present with sloppy focus enabled. If one window is focused with the mouse over it then trying to switch focus to another window with alt-tab results in the focus shifting briefly to the other window and then back to the original window. It happens when trying to switch between native wayland apps as well.
Comment 8 Phillip Wood 2018-04-01 10:00:30 UTC
Created attachment 370406 [details]
Screencast showing the problem

Here's a screencast - I press Alt-Tab twice and you can see the focus flashes across to the terminal and then back to tweak-tool
Comment 9 Phillip Wood 2020-04-17 18:21:07 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 739718 ***