Bugzilla – Bug 1208494
Broken window focus in Gnome after recent TW update
Last modified: 2023-03-21 04:18:36 UTC
Created attachment 865005 [details] Screenshot It happens when I change a window with ALT+TAB (typically from Chrome or Thunderbird) to a gnome-terminal and I still see the previous app in the top-left corner (please see my attachment) and I can't get the cursor when I click in the terminal window. $ gnome-terminal --version # GNOME Terminal 3.46.8 using VTE 0.70.3 +BIDI +GNUTLS +ICU +SYSTEMD $ gnome-shell --version GNOME Shell 43.3 I bet it's the recent change where both gnome-shell and gnome-terminal were updated.
Small note: all applications are running in the full window. Small note #2: observed on both my Thinkpad Laptop and my desktop with an ATI GPU
All right, I first tried to downgrade gnome-terminal to 3.46.7 and it didn't help. Then I downgraded mutter+gnome-shell back to 43.2 and it works fine now. The problem likely happens only in between apps that use XWayland (X11 compatible mode) as Thunderbird and Chrome and the mentioned gnome-terminal app.
Looks like https://gitlab.gnome.org/GNOME/mutter/-/commit/12ce58dba4f96f6a948c1d166646d263253e3ee0 Package in GNOME:Next has been updated to 43.3+2 (2 it commit ahead of 43.3) and is currently building. Will be submitted to Factory and is likely to show up in snapshot 0221
(In reply to Dominique Leuenberger from comment #3) > Looks like > https://gitlab.gnome.org/GNOME/mutter/-/commit/ > 12ce58dba4f96f6a948c1d166646d263253e3ee0 I can confirm this fixes my problem! Thank you guys.
(In reply to Martin Liška from comment #4) > (In reply to Dominique Leuenberger from comment #3) > > Looks like > > https://gitlab.gnome.org/GNOME/mutter/-/commit/ > > 12ce58dba4f96f6a948c1d166646d263253e3ee0 > > I can confirm this fixes my problem! Thank you guys. Thanks for testing and confirming. SR is in the pipeline and will reach users soon
It doesn't solve focus issues. For a normal solution, you need to roll back https://gitlab.gnome.org/GNOME/mutter/-/commit/a68b8e95954772cd6f5d676a803e01c13e48c83f
I can confirm the focus on Gnome 43.3-2 under X11 is broken.
Reopen based on the latest comments.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2878 I think we should backport this, I'll test it tomorrow.
(In reply to Alynx Zhou from comment #9) > https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2878 > > I think we should backport this, I'll test it tomorrow. This MR is just what I wrote above, https://bugzilla.suse.com/show_bug.cgi?id=1208494#c6 but slightly supplemented. I have been using this patch for some time now. It works.
Created attachment 865337 [details] MR 2878 Rebase for mutter 43.3
https://build.opensuse.org/request/show/1071068
We have mutter 44 now, I think this bug should be fixed?