Bug 1208494 - Broken window focus in Gnome after recent TW update
Broken window focus in Gnome after recent TW update
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: E-mail List
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-02-20 11:56 UTC by Martin Liška
Modified: 2023-03-21 04:18 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Screenshot (38.55 KB, image/png)
2023-02-20 11:56 UTC, Martin Liška
Details
MR 2878 (4.69 KB, patch)
2023-03-07 16:13 UTC, Dead Mozay
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2023-02-20 11:56:43 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.
Comment 1 Martin Liška 2023-02-20 11:57:35 UTC
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
Comment 2 Martin Liška 2023-02-20 12:23:00 UTC
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.
Comment 3 Dominique Leuenberger 2023-02-20 14:41:08 UTC
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
Comment 4 Martin Liška 2023-02-20 15:37:22 UTC
(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.
Comment 5 Dominique Leuenberger 2023-02-20 15:43:37 UTC
(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
Comment 6 Dead Mozay 2023-02-28 05:04:54 UTC
It doesn't solve focus issues.
For a normal solution, you need to roll back https://gitlab.gnome.org/GNOME/mutter/-/commit/a68b8e95954772cd6f5d676a803e01c13e48c83f
Comment 7 Andreas 2023-02-28 06:12:48 UTC
I can confirm the focus on Gnome 43.3-2 under X11 is broken.
Comment 8 Yifan Jiang 2023-02-28 08:17:18 UTC
Reopen based on the latest comments.
Comment 9 Alynx Zhou 2023-03-07 14:16:58 UTC
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2878

I think we should backport this, I'll test it tomorrow.
Comment 10 Dead Mozay 2023-03-07 14:46:17 UTC
(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.
Comment 11 Dead Mozay 2023-03-07 16:13:40 UTC
Created attachment 865337 [details]
MR 2878

Rebase for mutter 43.3
Comment 12 Alynx Zhou 2023-03-13 08:41:41 UTC
https://build.opensuse.org/request/show/1071068
Comment 13 Alynx Zhou 2023-03-21 04:18:36 UTC
We have mutter 44 now, I think this bug should be fixed?