window-props: Handle hide-titlebar-when-maximized for tiled windows

While we apply the setting to both maximized and tiled windows, we
currently only queue a resize for the former. This is required for
the setting to take effect immediately if the window is already
tiled.

https://gitlab.gnome.org/GNOME/mutter/issues/296
This commit is contained in:
Florian Müllner 2018-09-08 14:17:47 +02:00
parent 9cfd185316
commit 108224cd33

View File

@ -1729,7 +1729,8 @@ reload_gtk_hide_titlebar_when_maximized (MetaWindow *window,
window->hide_titlebar_when_maximized = requested_value; window->hide_titlebar_when_maximized = requested_value;
if (META_WINDOW_MAXIMIZED (window)) if (META_WINDOW_MAXIMIZED (window) ||
META_WINDOW_TILED_SIDE_BY_SIDE (window))
{ {
meta_window_queue (window, META_QUEUE_MOVE_RESIZE); meta_window_queue (window, META_QUEUE_MOVE_RESIZE);
meta_window_frame_size_changed (window); meta_window_frame_size_changed (window);