Bug 1158472

Summary: Some windows don't raise when titlebar clicked (when raise to click is false)
Product: [Fedora] Fedora Reporter: Adam Goode <adam>
Component: gtk3Assignee: Matthias Clasen <mclasen>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: ccecchi, fmuellner, mclasen, otaylor, pbrobinson, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-13 13:53:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Goode 2014-10-29 13:07:05 UTC
Description of problem:
This is different from #1151918, which is fixed.
Now, some windows will not raise with a click on the titlebar, when I otherwise have raise on click turned off.

Programs that work properly:
gnome-terminal

Programs that do not work properly:
gnome-calculator
gnome-tweak-tool


It seems like the new style Gnome windows (drawn by Gtk?) don't work. Mutter windows seem fine. I don't know which component to assign to.


Version-Release number of selected component (if applicable):
mutter-3.14.1-2.fc21.x86_64
gtk3-3.14.4-1.fc21.x86_64


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Florian Müllner 2014-10-30 09:43:29 UTC
(In reply to Adam Goode from comment #0)
> It seems like the new style Gnome windows (drawn by Gtk?) don't work. Mutter
> windows seem fine. I don't know which component to assign to.

This is indeed tricky - technically, everything works as expected: from the WM's point of view, client-side decorated windows don't have a titlebar, so the raise-on-click option effects the entire window. All we could do in mutter is treating a random area at the top as "titlebar", so I think this is best addressed in GTK+'s headerbar.

Comment 2 Matthias Clasen 2014-11-15 16:02:40 UTC
I don't see any behavior difference when toggling raise-on-click - windows get raised on click regardless of the setting.

Comment 3 Adam Goode 2014-11-17 02:13:16 UTC
Which setting? For me, it is org.gnome.desktop.wm.preferences.raise-on-click.

Comment 4 Florian Müllner 2014-11-20 13:32:52 UTC
(In reply to Matthias Clasen from comment #2)
> I don't see any behavior difference when toggling raise-on-click - windows
> get raised on click regardless of the setting.

The setting is only relevant for focus-follows-mouse mode[0]

[0]https://git.gnome.org/browse/mutter/tree/src/core/prefs.c#n1303

Comment 5 Matthias Clasen 2015-02-13 13:53:27 UTC
I've pushed a fix upstream: https://git.gnome.org/browse/gtk+/commit/?id=ac497c6e8f45bfece4054ba7f72ffd7becb45311