Commit 425611ea authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Georges Basile Stavracas Neto

window/wayland: Use constrained size when unmaximizing while fullscreen

Otherwise we'll ask the client to use the size 0x0 with the fullscreen
state set.

!621
parent 92135748
......@@ -217,9 +217,10 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
* coordinate space so that we can have a scale independent size to pass
* to the Wayland surface. */
geometry_scale = meta_window_wayland_get_geometry_scale (window);
if (flags & META_MOVE_RESIZE_UNMAXIMIZE)
if (flags & META_MOVE_RESIZE_UNMAXIMIZE &&
!meta_window_is_fullscreen (window))
{
/* On un-maximize, let the client decide on its size */
configured_width = 0;
configured_height = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment