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

2023-03-09 Thread Todor Tsankov
On 09/03/2023 01:02, Simon McVittie wrote:
> Control: reopen -1
> 
> On Wed, 08 Mar 2023 at 19:55:20 +0100, Todor Tsankov wrote:
>> On 07/03/2023 12:21, Debian Bug Tracking System wrote:
>> > #1032388: gnome-shell: fails to switch keyboard layout from topbar menu
>> 
>> The bug is still present for me with mutter 43.3-5 from unstable.
> 
> Even after logging out and back in?
> 

Yes.

> Is anything logged in the journal?
> 

Yes, this message:

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.

> 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"?
> 

Yes, that's it.

--Todor



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

2023-03-08 Thread Simon McVittie
Control: reopen -1

On Wed, 08 Mar 2023 at 19:55:20 +0100, Todor Tsankov wrote:
> On 07/03/2023 12:21, Debian Bug Tracking System wrote:
> > #1032388: gnome-shell: fails to switch keyboard layout from topbar menu
> 
> The bug is still present for me with mutter 43.3-5 from unstable.

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



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

2023-03-06 Thread Simon McVittie
Control: forwarded -1 https://gitlab.gnome.org/GNOME/mutter/-/issues/2626

On Sun, 05 Mar 2023 at 18:23:06 +0100, Todor Tsankov wrote:
> 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"

This seems to be a particularly bad version of
 (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.

> 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.

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



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

2023-03-05 Thread Todor Tsankov
On 05/03/2023 20:11, Simon McVittie wrote:
> Control: reassign -1 src:mutter 43.3-4
> Control: affects -1 + gnome-shell
> 
> On Sun, 05 Mar 2023 at 18:23:06 +0100, Todor Tsankov wrote:
>> Since a recent update
> 
> 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?
> 

I did some tests: the problem is present with mutter 43.3-4, 43.3-3, and
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.

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

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

> 
>> I have the option "Switch input sources individually for each window"
>> set to "on"
> 
> If you turn off that option, does that make a difference?
> 

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

--Todor



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

2023-03-05 Thread Simon McVittie
Control: reassign -1 src:mutter 43.3-4
Control: affects -1 + gnome-shell

On Sun, 05 Mar 2023 at 18:23:06 +0100, Todor Tsankov wrote:
> Since a recent update

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.

> I have the option "Switch input sources individually for each window"
> set to "on"

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

smcv



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

2023-03-05 Thread Todor Tsankov
Package: gnome-shell
Version: 43.3-2
Severity: important

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


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-5-amd64 (SMP w/20 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gnome-shell depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-4
ii  gir1.2-accountsservice-1.0   22.08.8-6
ii  gir1.2-adw-1 1.2.2-1
ii  gir1.2-atk-1.0   2.46.0-5
ii  gir1.2-atspi-2.0 2.46.0-5
ii  gir1.2-freedesktop   1.74.0-3
ii  gir1.2-gcr-3 3.41.1-1+b1
ii  gir1.2-gdesktopenums-3.0 43.0-1
ii  gir1.2-gdkpixbuf-2.0 2.42.10+dfsg-1+b1
ii  gir1.2-gdm-1.0   43.0-3
ii  gir1.2-geoclue-2.0   2.6.0-2
ii  gir1.2-glib-2.0  1.74.0-3
ii  gir1.2-gnomebluetooth-3.042.5-3
ii  gir1.2-gnomedesktop-3.0  43.2-1
ii  gir1.2-graphene-1.0  1.10.8-1
ii  gir1.2-gstreamer-1.0 1.22.0-2
ii  gir1.2-gtk-3.0   3.24.36-4
ii  gir1.2-gtk-4.0   4.8.3+ds-2
ii  gir1.2-gweather-4.0  4.2.0-1
ii  gir1.2-ibus-1.0  1.5.27-5
ii  gir1.2-mutter-11 43.3-4
ii  gir1.2-nm-1.01.42.0-1
ii  gir1.2-nma-1.0   1.10.6-1
ii  gir1.2-pango-1.0 1.50.12+ds-1
ii  gir1.2-polkit-1.0122-3
ii  gir1.2-rsvg-2.0  2.54.5+dfsg-1
ii  gir1.2-soup-3.0  3.2.2-1
ii  gir1.2-upowerglib-1.00.99.20-2
ii  gir1.2-webkit2-4.1   2.38.5-1
ii  gnome-backgrounds43.1-1
ii  gnome-settings-daemon43.0-4
ii  gnome-shell-common   43.3-2
ii  gsettings-desktop-schemas43.0-1
ii  gstreamer1.0-pipewire0.3.65-3
ii  libatk-bridge2.0-0   2.46.0-5
ii  libatk1.0-0  2.46.0-5
ii  libc62.36-8
ii  libcairo21.16.0-7
ii  libecal-2.0-23.46.4-1
ii  libedataserver-1.2-273.46.4-1
ii  libgcr-base-3-1  3.41.1-1+b1
ii  libgdk-pixbuf-2.0-0  2.42.10+dfsg-1+b1
ii  libgirepository-1.0-11.74.0-3
ii  libgjs0g 1.74.2-1
ii  libgles2 1.6.0-1
ii  libglib2.0-0 2.74.5-1
ii  libglib2.0-bin   2.74.5-1
ii  libgnome-autoar-0-0  0.4.3-1
ii  libgnome-desktop-3-2043.2-1
ii  libgraphene-1.0-01.10.8-1
ii  libgtk-3-0   3.24.36-4
ii  libgtk-4-1   4.8.3+ds-2
ii  libical3 3.0.16-1+b1
ii  libjson-glib-1.0-0   1.6.6-1
ii  libmutter-11-0   43.3-4
ii  libnm0   1.42.0-1
ii  libpango-1.0-0   1.50.12+ds-1
ii  libpangocairo-1.0-0  1.50.12+ds-1
ii  libpolkit-agent-1-0  122-3
ii  libpolkit-gobject-1-0122-3
ii  libpulse-mainloop-glib0  16.1+dfsg1-2+b1
ii  libpulse016.1+dfsg1-2+b1
ii  libsecret-1-00.20.5-3
ii  libsystemd0  252.5-2
ii  libwayland-server0