#1032388 gnome-shell: fails to switch keyboard layout from topbar menu

Package:
gnome-shell
Source:
gnome-shell
Description:
graphical shell for the GNOME desktop
Submitter:
Todor Tsankov
Date:
2023-03-10 00:45:04 UTC
Severity:
normal
#1032388#5
Date:
2023-03-05 17:23:06 UTC
From:
To:
Dear Maintainer,

Since a recent update, switching keyboard layouts from the menu in the
topbar (clicking the language symbol in the topbar and choosing a
keyboard layout) does not work any more, i.e., the action has no effect.
Switching layouts works fine with the keyboard shortcut as well as with
the mouse in the overview.

I have the option "Switch input sources individually for each window"
set to "on" and I am using three different keyboard layouts. I have also
disabled all gnome-shell extensions to test this.

Another related problem is that if the current window and the overview
are using different keyboard layouts, the animation for switching to the
overview visibly stutters.

This worked fine before the update.

Best wishes,
Todor

#1032388#10
Date:
2023-03-05 19:11:44 UTC
From:
To:
Control: reassign -1 src:mutter 43.3-4
Control: affects -1 + gnome-shell

gnome-shell 43.3-2 was only a translation update, so it's
unlikely to be that.

Based on the timing of your report, this is probably a regression in
mutter 43.3-4. Please look at /var/log/apt/history.log: what version of
libmutter-11-0 would you have been using at the time you most recently
restarted gnome-shell before this regression?

Are you using gnome-shell in X11 mode ("GNOME on Xorg") or in Wayland mode?

I can reproduce something similar in a test VM using gnome-text-editor
and gnome-terminal as my sample applications, but only in Xorg, not
in Wayland.

Upstream has been tracking some issues involving focus handling which are
probably related to this.

If you turn off that option, does that make a difference?

    smcv

#1032388#23
Date:
2023-03-05 23:42:06 UTC
From:
To:
43.3-2 and also with gnome-shell 43.3-2 and 43.2-2. (I logged out and
back in between all tests.) So, basically, I have no idea when it
appeared. Maybe it is older and I just noticed it recently.

I am using Xorg. I tested with Wayland and there it works fine.

Yes, it does. If I turn it off, changing the layout works fine.

#1032388#32
Date:
2023-03-06 11:48:28 UTC
From:
To:
Control: forwarded -1 https://gitlab.gnome.org/GNOME/mutter/-/issues/2626

This seems to be a particularly bad version of
<https://gitlab.gnome.org/GNOME/mutter/-/issues/2626> (the same root cause
as #1031945). Because you're using a per-window input source choice,
losing window focus invalidates the action you were trying to do.

The changes from upstream merge request !2878 seem to fix this, and will be
in mutter 43.3-5, 44.rc, and hopefully also 43.4.

Please open a separate bug for this if it still persists after #1032388 is
fixed, and is significant enough to be worthwhile to track.

I'm unlikely to work on solving minor performance/framerate issues myself
(I'm already trying to fix too many things!) but other GNOME team members
are welcome to look into it.

    smcv

#1032388#39
Date:
2023-03-07 11:19:25 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mutter, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1032388@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon McVittie <smcv@debian.org> (supplier of updated mutter package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 06 Mar 2023 11:35:23 +0000
Source: mutter
Architecture: source
Version: 43.3-5
Distribution: unstable
Urgency: medium
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Changed-By: Simon McVittie <smcv@debian.org>
Closes: 1031945 1032388
Changes:
 mutter (43.3-5) unstable; urgency=medium
 .
   * Team upload
   * d/patches: Use the same order in which patches were applied upstream
   * d/p/color-device-Make-sure-lcms_context-is-not-NULL.patch,
     d/p/color-device-Don-t-close-lcms-profile-on-error-from-cd_ic.patch:
     Use final version of these patches as applied upstream
   * d/p/Revert-x11-Do-not-move-X11-input-focus-during-grabs.patch,
     d/p/Revert-x11-events-Do-not-update-focus-XWindow-during-grab.patch,
     d/p/x11-Ignore-_NET_ACTIVE_WINDOW-client-messages-while-grabb.patch,
     d/p/core-Avoid-focusing-windows-on-map-during-grabs.patch:
     Backport upstream merge request !2878, fixing X11 focus regressions
     (Closes: #1032388, #1031945)
   * d/p/tests-Use-a-more-interoperable-path-to-bash.patch:
     Fix path to interpreter in x11-test.sh instead of disabling it
     - d/p/tests-Disable-broken-test.patch: Drop patch, no longer needed
Checksums-Sha1:
 9a14541239ef0fd865030f7707c7bf2fee049bb9 4363 mutter_43.3-5.dsc
 2169699dd70363cbc61a450afe1fcddc0d3da739 92216 mutter_43.3-5.debian.tar.xz
 9e3a2b68877b0c6c6a2ed9c46e70b089fa0b063e 19730 mutter_43.3-5_source.buildinfo
Checksums-Sha256:
 37ab79a88abe724a080c00bd6f53829a1443948fd738995e258a7640ce9ee2ba 4363 mutter_43.3-5.dsc
 2f683e3506d87979653155b76f82ec2ea143ef0a1a3c1636fe7c60d70aeccfc0 92216 mutter_43.3-5.debian.tar.xz
 ad9d15b719f9da6d3a52c06defc4adb09027112aef82b7382541510e9706078f 19730 mutter_43.3-5_source.buildinfo
Files:
 72470ea7eed88aefc56f9d857d705d33 4363 x11 optional mutter_43.3-5.dsc
 508757effebd4e0aca27cef4ad5d861a 92216 x11 optional mutter_43.3-5.debian.tar.xz
 4d45e13d2adcabbb9dccb284124079b3 19730 x11 optional mutter_43.3-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEENuxaZEik9e95vv6Y4FrhR4+BTE8FAmQHGs4ACgkQ4FrhR4+B
TE9vNQ//YJMOsANEuxI5X3slZlLiCnZIfH1meVMc5Mn4MMBmSvThK95qv29EeOZb
FB3xSz5H68mOFLJXc/CMROfdrpfaa2I4C/ljAIjhb0HSaWtvVoB25/5jXyEeFAQk
h1y8AcnqHcVniYWp72acSkTWyyxVOkxfts6GuditCyNqqSc9RqTXTWYWmSWLmklz
2kBPW0Nmjc44DQmEt0ao9ZAKjtwiQoXaQbao8xqCwk7WvWa8SHv9yYuc/h1BQAlj
GuGkyOiuJB8AwLtJRFXph/b25u12Vgiukjl/Epgcpz5GTOnUT6qlv0fdh6C/MzvX
PudR6oaIEUzMx0OT/WBeMAHlj8tuvSi7ARnQ9+NOGPgDZtMMNCVTrs/boN8kY4K/
kDNYuNJuKtXHPjvaWJe37mnPcjUbsiWRq+8xMFYdioPjp7EtILilrjgdxs94hSC/
QOnF7u5tz2UsQKdmaKnFwrjsGKStePR90kFdZxXLy/Iy7jIBUaSvaZui0fZpxR3s
OeaF1jxbgtnA1S7Tj5vjwVmGLHXjxeNA4ehDdQxy28lDyvjnrsWqNbvZZ/tFCiQG
EWp1IOsEhJV/2O4S7BvGw4qh6S7uu/n6EXW5ShsxkeLq7/joNP1AjntPE2jV41Q+
Gs606LQSrfIRVp19NAnIAvvqJlMRCSGCFfdadQpIYYDphPhkfco=
=Fp83
-----END PGP SIGNATURE-----

#1032388#44
Date:
2023-03-08 01:56:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mutter, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1032388@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marco Trevisan (Treviño) <marco@ubuntu.com> (supplier of updated mutter package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 08 Mar 2023 02:29:22 +0100
Source: mutter
Architecture: source
Version: 44~rc-1
Distribution: experimental
Urgency: medium
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Changed-By: Marco Trevisan (Treviño) <marco@ubuntu.com>
Closes: 1031847 1031945 1032388
Changes:
 mutter (44~rc-1) experimental; urgency=medium
 .
   [ Jeremy Bicha ]
   * New upstream release
   * d/p/wayland-Don-t-overwrite-surface-offsets.patch,
     d/p/x11-Avoid-updating-focus-on-wayland-compositor.patch:
     Drop, applied in new release
   * debian/control.in: Build-Depend on libgnome-desktop-4-dev instead of -3
   * debian/control.in: Mark libgtk-3-dev as only needed for build tests
   * debian/control.in: Bump minimum wayland-protocols to 1.31
   * debian/*.symbols: Update; some "private" meta_* symbols were dropped
 .
   [ Simon McVittie ]
   * Merge packaging from unstable (Closes: #1031945, #1032388, #1031847)
     - Drop patches that were backported from upstream 44.rc into unstable
     - d/p/tests-Use-a-more-interoperable-path-to-bash.patch:
       Fix path to interpreter in x11-test.sh instead of disabling it
     - d/p/tests-Disable-broken-test.patch: Drop patch, no longer needed
   * d/p/debian/backends-native-kms-crtc-Don-t-compare-gamma-values-on-un.patch:
     Drop patch from upstream !2371, which no longer applies cleanly.
     As far as I can see, this is unnecessary since commit 9001fa97
     "kms/crtc: Always read the gamma state" from !2435.
 .
   [ Marco Trevisan (Treviño) ]
   * d/p/debian/Support-Dynamic-triple-double-buffering.patch:
     Refreshed with the 44-WIP version from Daniel, it's working properly in
     main tested scenarios.
   * debian/patches: Drop patch removing dependency on glib 2.75
   * debian/control: Bump build-dependency on glib-2.75
   * debian/control: Add breaks on gnome-shell << 44~rc.
     It's not possible to compile older gnome-shell versions with mutter
     44~rc due to the gtk dependency removal
Checksums-Sha1:
 b8a50e10d6db8976da02a3fc3500366a295419cb 4379 mutter_44~rc-1.dsc
 32d4db499499f5360e8e2ced5bc9b7e481cbaa07 2837848 mutter_44~rc.orig.tar.xz
 ba55f69894c52e1f6d1386cfb2532859516ade69 84128 mutter_44~rc-1.debian.tar.xz
 f00f5da7e0e46b259616f730e6771a4ba30ac4c9 23081 mutter_44~rc-1_source.buildinfo
Checksums-Sha256:
 db53c37d5b8f034ca8d50970f5de95c56cb07f28a7fc1c0207e28a056561c4fe 4379 mutter_44~rc-1.dsc
 690ca775d7ad15b9b50c0e3c276c3ec47fc5be2f805612c367582e6b2de3825b 2837848 mutter_44~rc.orig.tar.xz
 0c659726a695c2f68abf91edcc2889a9a943dbfc898026835190ab369820c4ba 84128 mutter_44~rc-1.debian.tar.xz
 2f1fd89076554622e5f602d5d7cebf1078c56d0b00b43abeca4e6e4871cfbbfc 23081 mutter_44~rc-1_source.buildinfo
Files:
 4aced0f695e3f4b3c15082e47dd9e8d7 4379 x11 optional mutter_44~rc-1.dsc
 7550a7f1c41a2ad6e6b7daa8107eabab 2837848 x11 optional mutter_44~rc.orig.tar.xz
 e5297e5e8dd371ce5269826d8812cfd0 84128 x11 optional mutter_44~rc-1.debian.tar.xz
 65c683cc7ac4a0fffc05c4b5bba61370 23081 x11 optional mutter_44~rc-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE1MUB2kjreXoIF1CTlEnC9QmWY18FAmQH5RwACgkQlEnC9QmW
Y18PxxAAi/qLBL2t3HtGLxs9iKmAUWZc9/RgK4XRxSOSoeTQ0/vGnE9DCuYWH244
KZRsATAA9DlPcLJ/5pP80uXqLuu2sR+lVUiRoRt3240KhiZ1Vuvd6K9MdPNsDikX
yWZZs9PeWxDvhKKV4n8anLTnSikoKfuWXq0zInk/MT+0Yhv3rqBq6jDqOpbwc1nu
Ar04Ef38Lm66oqJacPnIpayZwBvtd5w+p7fIDaipwKUFbg+h+K8CsgxO0WNU2MkR
+mlUChHnLSTzU2FA+8Rk5kUu2pMIx8Yaq4yeEi5naaodR0a4yDbMTRrbWXCUandD
/T9yF1HK3GoMkATSbVdCBtM5OmGuAsUohJzSth3TyR+Z+8H/sD47bm2PJs4oWgVk
kKL4SBjXOUP/awpPJ4A2faVQ3rZZcgCOBpQuTIxc3svzIoLDKZ+zo2d4uuS5phzH
a+pwLzmZXs4WMpdSk0E8MwHHYRmgxn1Ttg+Dnc6CAfgNMZTpM/eUtpIb2FoLH11F
yqjFfFCnVJ/OQzVpRJDxnEyafp+LR6a7KR5+UfQSJcZeOMNqzlBdn9uS7WMiEiWX
V4/QyhGROxpMWaY3HMG4jWLjfotmD0AVgR+K76ibmjOAPIWv2bOE8E08VihdgcIi
eRipVH/Ih7ArbvxI48aZByDFIo7hdXAZhTVDPC29+Vk3ZH7NqGg=
=MQvb
-----END PGP SIGNATURE-----

#1032388#49
Date:
2023-03-08 18:55:20 UTC
From:
To:
The bug is still present for me with mutter 43.3-5 from unstable.
#1032388#54
Date:
2023-03-09 00:02:22 UTC
From:
To:
Control: reopen -1

Even after logging out and back in?

Is anything logged in the journal?

Is it still the same situation you described in earlier messages, where
using Wayland avoids the bug, disabling "Switch input sources individually
for each window" also avoids the bug, but it can be reproduced by using
Xorg and enabling "Switch input sources individually for each window"?

    smcv

#1032388#63
Date:
2023-03-09 22:14:10 UTC
From:
To:
Yes.

Mar 09 23:02:58 alsvin gnome-shell[3173]: Window manager warning:
Overwriting existing binding of keysym ff09 with keysym ff09 (keycode 17).

I am not sure what it is about.

Yes, that's it.

#1032388#74
Date:
2023-03-10 00:42:13 UTC
From:
To:
Control: retitle -1 gnome-shell: can't switch keyboard layout using top bar menu in Xorg mode with per-window input source

I can reproduce this in a test VM, and I've reported it upstream as
<https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6484>. I don't know
whether it's really a gnome-shell bug or a mutter bug, so I'll leave it
assigned to mutter here for now.

    smcv