mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
wayland: Do not enforce a size on un-maximize
When un-maximizing, use a zero size to pass to the client so that it can use the right un-maximized size that fits. https://bugzilla.gnome.org/show_bug.cgi?id=783901
This commit is contained in:
parent
1139ace244
commit
6cf7d2d47f
@ -210,8 +210,17 @@ 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);
|
||||
configured_width = constrained_rect.width / geometry_scale;
|
||||
configured_height = constrained_rect.height / geometry_scale;
|
||||
if (flags & META_MOVE_RESIZE_UNMAXIMIZE)
|
||||
{
|
||||
/* On un-maximize, let the client decide on its size */
|
||||
configured_width = 0;
|
||||
configured_height = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
configured_width = constrained_rect.width / geometry_scale;
|
||||
configured_height = constrained_rect.height / geometry_scale;
|
||||
}
|
||||
|
||||
/* For wayland clients, the size is completely determined by the client,
|
||||
* and while this allows to avoid some trickery with frames and the resulting
|
||||
|
Loading…
Reference in New Issue
Block a user