After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758244 - GtkHeaderBar: Close button's mouse-over area doesn't extend to top-right pixel when maximized (fitts' law)
GtkHeaderBar: Close button's mouse-over area doesn't extend to top-right pixe...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: Other
3.14.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-11-17 21:00 UTC by Jan Niklas Hasse (Account disabled)
Modified: 2018-05-02 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Left: working, Right: not working (3.01 KB, image/png)
2015-11-17 21:00 UTC, Jan Niklas Hasse (Account disabled)
Details
Unclickable area of close button (3.08 KB, image/png)
2016-11-15 14:28 UTC, testify4
Details
Clicable area of titlebar (1.57 KB, image/png)
2016-11-19 09:56 UTC, testify4
Details

Description Jan Niklas Hasse (Account disabled) 2015-11-17 21:00:31 UTC
Created attachment 315791 [details]
Left: working, Right: not working

Running GNOME Shell with a bottom panel it's not possible to close a maximized window of an application that is using GtkHeaderBar by clicking the most top-right pixel.

My screen-shot shot shows what I mean: On the left there's a traditional application not using GtkHeaderBar. The red pixel is my mouse position. As you can see this triggers the mouse over of the close button, but not with a GtkHeaderBar as you can see on the right side.
Comment 1 testify4 2016-11-15 14:28:20 UTC
Created attachment 339942 [details]
Unclickable area of close button

I think all red-marked area should be clickable. This is important in desktop environments which don't have top panel at all.
Comment 2 testify4 2016-11-19 09:56:06 UTC
Created attachment 340292 [details]
Clicable area of titlebar

For comparison, this is the traditional title bar. The whole green area IS clickable.
Comment 3 Emmanuele Bassi (:ebassi) 2017-10-18 17:23:41 UTC
The reason why this happens is that server-side decorations do not use widgets, and client-side decorations do.

It's possible to change GtkHeaderBar to detect clicks on itself and compare the area with the location of the widgets; it's going to be a bit complicated, because it would need to have an input window on the header bar, and that may conflict with the input windows we use for resizing.
Comment 4 Jan Niklas Hasse (Account disabled) 2017-10-23 10:12:03 UTC
> it's going to be a bit complicated, because it would need to have an > input window on the header bar, and that may conflict with the input > windows we use for resizing.

Is the input window for resizing also there when maximized?
Comment 5 GNOME Infrastructure Team 2018-05-02 16:50:55 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/583.