Bug 2187831

Summary: [regression] Window title bar mouse clicks are ignored
Product: [Fedora] Fedora Reporter: Michael Cronenworth <mike>
Component: mutterAssignee: Florian Müllner <fmuellner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: ajax, awilliam, bmason, bskeggs, erack, fmuellner, gecko-bugs-nobody, gnome-sig, jadahl, jglisse, joe, kai-engert-fedora, klaas, mail, ofourdan, otaylor, philip.wyett, pjasicek, rhughes, rstrode, rwf, sandmann, walters, xgl-maint
Target Milestone: ---Keywords: Desktop, Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: mutter-44.0-2.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-20 04:41:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Cronenworth 2023-04-18 20:16:34 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Build Identifier: 

If the Thunderbird window is partially obscured by another window and I click on the Thunderbird title bar the Thunderbird app does not bring itself forward to the top app as expected. If I click inside of the Thunderbird app, such as on the Inbox or on a mail folder, the window brings itself forward to be on top of other windows as expected.

Reproducible: Always

Steps to Reproduce:
1. Open Thunderbird
2. Open another app (Terminal, Firefox, or Files)
3. Partially cover the Thunderbird app with one of the apps from step 2.
4. Click on the Thunderbird app title bar.
Actual Results:  
Nothing happens.

Expected Results:  
Thunderbird brings itself forward and paints on top of other windows.

Started happening after the upgrade from F37 to F38. I am using Xorg with the NVIDIA driver.

This behavior does NOT happen on Intel and Wayland. The title bar reacts as expected on Wayland.

Comment 1 Michael Cronenworth 2023-04-19 03:58:06 UTC
This affects more than Thunderbird. It is a general Xorg problem and not related to NVIDIA. I can reproduce this on an Intel graphics machine.

Affected apps: Thunderbird, GTK2 apps, VirtualBox (QT apps?), Libreoffice (severe graphical glitching)

Comment 2 Adam Williamson 2023-04-19 06:52:57 UTC
Backporting the fix now.

Comment 3 Fedora Update System 2023-04-19 07:16:24 UTC
FEDORA-2023-7ca5ef3bc9 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-7ca5ef3bc9

Comment 4 Fedora Update System 2023-04-20 04:41:43 UTC
FEDORA-2023-7ca5ef3bc9 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Joe Doss 2023-04-20 16:45:19 UTC
This is still an issue. It fixes Firefox and Chrome for some reason, but Thunderbird, and Flatpak apps such as Signal, Discord, Slack, and Spotify still do not come to the foreground when clicking the menu bar at the top. I have to click the main window to bring them to the front. I am using X11 with NVIDIA drivers from RPMFusion on Fedora 38.

$ rpm -qa|grep mutter-44.0-2.fc38
mutter-44.0-2.fc38.x86_64

Comment 6 Michael Cronenworth 2023-04-20 16:54:39 UTC
I did not have a problem with Firefox. You may be encountering a different issue.

Did you log out and login or restart after updating mutter?

Comment 7 Joe Doss 2023-04-20 17:24:50 UTC
Yep, I logged out and back in and the issue remained. I fully rebooted too and the results was the same.

Comment 8 Rob Foehl 2023-04-30 07:32:15 UTC
Just ran into this with a fresh Fedora 38 install, Xorg session, up to date mutter-44.1-1.fc38 package.  Seems to affect all windows with server side decorations, including Firefox with title bars; windows with client side decorations still behave as they should.

Comment 9 Adam Williamson 2023-05-01 16:09:48 UTC
But...Joe says Firefox works for him. This seems to be getting a bit hard to pin down at this point. I'm not sure you're seeing the same bug as each other, or as the initial report...

Comment 10 Rob Foehl 2023-05-01 17:08:28 UTC
Firefox depends on whether it's drawing its own title bar, hence the specific mention of server side decorations: from the Customize Toolbar screen, check Title Bar, and the issue appears.  Firefox (and Chrome) out of the box wouldn't exhibit this behavior.

(Among the reasons I still use title bars in Firefox is that it's often the easiest part of the window to hit with a left or middle click to raise or lower, without touching something in the current tab/page.)

On the affected laptop, I currently have about a dozen xterms, two Firefox instances, and one each of gvim, Writer, Calc, the Pidgin buddy list, and Evolution; the latter is the only window among them with client side decorations (which itself is a relatively recent change), and thus the only one I can focus/raise/lower via the title bar.  The ensuing use of Alt-Tab/Alt-` to get around has me well on my way to an RSI, at this point :)