x11: Remove hide-titlebar-when-maximized support

It's a UI pattern that has been superseded by client-side decorations,
apps that used to set the hint have generally moved on to headerbars.
Given that and the limitation to server-side decorated X11 windows,
GTK4 removed the client-side API for setting the hint, it's time to
follow suite and retire the feature.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/221
This commit is contained in:
Florian Müllner
2018-09-08 13:26:13 +02:00
committed by Georges Basile Stavracas Neto
parent ca7c5c1223
commit 6e1b14b26b
7 changed files with 1 additions and 52 deletions

View File

@@ -7708,9 +7708,7 @@ meta_window_get_frame_type (MetaWindow *window)
/* can't add border if undecorated */
return META_FRAME_TYPE_LAST;
}
else if (window->border_only ||
(window->hide_titlebar_when_maximized && META_WINDOW_MAXIMIZED (window)) ||
(window->hide_titlebar_when_maximized && META_WINDOW_TILED_SIDE_BY_SIDE (window)))
else if (window->border_only)
{
/* override base frame type */
return META_FRAME_TYPE_BORDER;