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 665616 - Add hide-titlebar-when-maximized setting
Add hide-titlebar-when-maximized setting
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 665617
 
 
Reported: 2011-12-05 18:28 UTC by Florian Müllner
Modified: 2011-12-15 15:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
settings: Add hide-titlebar-when-maximized setting (10.46 KB, patch)
2011-12-05 18:28 UTC, Florian Müllner
none Details | Review
demo: Add test for hide-titlebar-when-maximized (2.02 KB, patch)
2011-12-05 18:28 UTC, Florian Müllner
none Details | Review
window: Add hide-titlebar-when-maximized property (10.17 KB, patch)
2011-12-05 20:23 UTC, Florian Müllner
none Details | Review
demo: Add test for hide-titlebar-when-maximized (1.90 KB, patch)
2011-12-05 20:23 UTC, Florian Müllner
committed Details | Review
window: Add hide-titlebar-when-maximized property (10.66 KB, patch)
2011-12-05 20:42 UTC, Florian Müllner
reviewed Details | Review
window: Add hide-titlebar-when-maximized property (10.59 KB, patch)
2011-12-05 21:12 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2011-12-05 18:28:27 UTC
New applications designed by the design team request that titlebars should be hidden when windows are maximized[0]. The designers think that applications need to be designed with this maximization state in mind, so we cannot just remove titlebars on all maximized windows - for that purpose, add a GtkSetting which allows applications to request from the window manager that titlebars should be hidden during maximization.

[0] https://live.gnome.org/GnomeOS/Design/Whiteboards/WindowStates
Comment 1 Florian Müllner 2011-12-05 18:28:39 UTC
Created attachment 202856 [details] [review]
settings: Add hide-titlebar-when-maximized setting

For maximized windows, titlebars cannot be used to reposition or
scale the window, so if an application does not use it to convey
useful information (other than the application name), the screen
space occupied by titlebars could be put to better use.
Add a new application setting which requests from the window manager
to hide titlebars when windows are maximized to account for this.
Comment 2 Florian Müllner 2011-12-05 18:28:52 UTC
Created attachment 202857 [details] [review]
demo: Add test for hide-titlebar-when-maximized

Add an additional option to the appwindow demo to test the new
gtk-hide-titlebar-when-maximized setting.
Comment 3 Florian Müllner 2011-12-05 20:23:23 UTC
Created attachment 202866 [details] [review]
window: Add hide-titlebar-when-maximized property

Talked with Matthias on IRC, we agreed on using a Window property instead.
Comment 4 Florian Müllner 2011-12-05 20:23:52 UTC
Created attachment 202867 [details] [review]
demo: Add test for hide-titlebar-when-maximized

Obvious patch update.
Comment 5 Florian Müllner 2011-12-05 20:42:17 UTC
Created attachment 202868 [details] [review]
window: Add hide-titlebar-when-maximized property

*) Make sure the X11 property is set when the window is initially mapped
Comment 6 Matthias Clasen 2011-12-05 20:55:10 UTC
Review of attachment 202868 [details] [review]:

::: gtk/gtkwindow.c
@@ +3083,3 @@
+  g_return_if_fail (GTK_IS_WINDOW (window));
+
+  if (!window->priv->type == GTK_WINDOW_TOPLEVEL)

This looks wierd. I'd strongly recommend to go with !=

Do the window type checks add anything, anyway ? We could just do away with them and live with the fact that some people might set a few ignored properties on non-toplevel windows...
Comment 7 Matthias Clasen 2011-12-05 20:57:14 UTC
Review of attachment 202867 [details] [review]:

This one looks fine
Comment 8 Florian Müllner 2011-12-05 21:12:31 UTC
Created attachment 202874 [details] [review]
window: Add hide-titlebar-when-maximized property

(In reply to comment #6)
> Do the window type checks add anything, anyway ?

Not really, no.


> We could just do away with them and live with the fact that some people
> might set a few ignored properties on non-toplevel windows...

Sure, I removed the toplevel check from the gtk part.
Comment 9 Matthias Clasen 2011-12-05 22:55:20 UTC
Review of attachment 202874 [details] [review]:

Looks fine now, thanks.
Comment 10 Florian Müllner 2011-12-15 15:32:59 UTC
Attachment 202867 [details] pushed as 3b0a9c5 - demo: Add test for hide-titlebar-when-maximized
Attachment 202874 [details] pushed as 4f8f8fe - window: Add hide-titlebar-when-maximized property