GNOME Bugzilla – Bug 750141
The alt key get's passed to Xwayland apps while alt-tabbing
Last modified: 2016-12-15 12:39:23 UTC
Easy to reproduce. Login to "GNOME on Wayland", open Firefox, alt-tab, and Firefox will show it's alt-menu. GNOME 3.16.2, Arch Linux, fully updated. Thanks.
Also, this occurs only if the alt-tab window switcher displays. If it's just a quick alt-tab, so that the switcher won't open, it doesn't occur.
Still happens on 3.17.90, except that the Alt key get's passed ALWAYS, even on a quick Alt-Tab.
Need to revive my Xwayland patches to fix this.
I doubt this issue is specific to wayland, it has been present on X11 (gnome-shell 3.16.x) too. And I doubt this can ever be fixed because it will break all mnemonics (those underlined letters in menus). Comment #2 doesn't apply to my installation (Fedora 23, gnome 3.18.2).
(In reply to Christian Stadelmann from comment #4) > I doubt this issue is specific to wayland, it has been present on X11 > (gnome-shell 3.16.x) too. And I doubt this can ever be fixed because it will > break all mnemonics (those underlined letters in menus). In the XWayland case, it's because we send real press/release events rather than letting them be handled by KeymapNotify.
*** Bug 758347 has been marked as a duplicate of this bug. ***
(In reply to Christian Stadelmann from comment #4) > I doubt this issue is specific to wayland, it has been present on X11 > (gnome-shell 3.16.x) too. And I doubt this can ever be fixed because it will > break all mnemonics (those underlined letters in menus). It doesn't occur in X11, at least with Firefox. On X11, when you press Alt, you can still use mnemonics (you can for example press Alt-f for "File"), but menu bar doesn't show until you *release* Alt. So using Alt-Tab on X11 doesn't result in menu bar in Firefox appearing and then disappearing quickly. It does on Wayland - see this: https://bug758347.bugzilla-attachments.gnome.org/attachment.cgi?id=315895
(In reply to boloomka from comment #7) > It doesn't occur in X11, at least with Firefox. On X11, when you press Alt, > you can still use mnemonics (you can for example press Alt-f for "File"), > but menu bar doesn't show until you *release* Alt. So using Alt-Tab on X11 > doesn't result in menu bar in Firefox appearing and then disappearing > quickly. It does on Wayland - see this: > https://bug758347.bugzilla-attachments.gnome.org/attachment.cgi?id=315895 What I see in your video (what you describe is happening on wayland) is what happens for me on X11. On wayland the menu bar just stays visible. Otherwise it is the same as X11.
http://lists.freedesktop.org/archives/xorg-devel/2015-November/047979.html should resolve this.
Patches merged into XWayland master; this should now be no more broken than X11 ever was.
Hm, still a problem, do you know if the fix got to release?
(In reply to Juraj Fiala from comment #11) > Hm, still a problem, do you know if the fix got to release? No, it was merged into XWayland master after 1.18.x (or its dev version) was branched from XWayland master. With no further changes we have to wait for xorg-x11-server 1.19.x, which is not yet released. Don't expect it soon. I don't know what Fedora's strategy will be here: 1. stick to an old xserver (especially in terms of xwayland) 2. backport some fixes (high maintenance burden) 3. ship a tested xserver git snapshot (very risky) Looks like updates to 1.18.2 give us sufficiently hard times so I guess it will be 1). XWayland upstream changes can be seen here: for 1.18.x: https://cgit.freedesktop.org/xorg/xserver/log/hw/xwayland?h=server-1.18-branch for master: https://cgit.freedesktop.org/xorg/xserver/log/hw/xwayland
I believe this is fixed?
(In reply to Rui Matos from comment #13) > I believe this is fixed? I don't know. Did you test upstream (to become 1.19.x xorg-x11-server) master branch? I didn't and I'd prefer to leave it open until it lands in any stable distro release.
So Fedora 25 ships with xorg-x11-server-Xwayland-1.19.0-1.fc25.x86_64, and I still observe the following behaviour: - Pressing and releasing alt shows the menu - OK - Doing a "quick" alt tab (switcher doesn't show) doesn't show the menu - OK - Doing a "full" alt tab (switcher shows) shows the menu - NOK What that means is that if I do a "full" alt tab and come back to firefox, and then press eg. "f", the file menu opens. I'd argue this is a rather minor issue, but it's still present. I'm therefore resetting the status to "NEW".
Daniel's patches fixed the key press side of this but there was still an issue for key releases. I submitted a patch for that https://patchwork.freedesktop.org/patch/123758/ . In any case, not a mutter bug.
OK, good to know that there's a patch for that issue, thanks for the update! Do you know if there's a chance for this patch to make it in a "point" release, ie. a minor one that would have a chance to end up in Fedora 25 (or in other distros shipping 1.19.x), or is it material for a later major release?
*** Bug 755804 has been marked as a duplicate of this bug. ***
Tried the patch, Doesn't fix this bug :(
Fedora 25, Firefox 50