Revert "clients/window: Update min_allocation for smaller widths/heights"

This seems to break interactive resize, giving invalid/0/negative values
to pending allocations.

This reverts commit 9555118095.

Fixes: #780
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2023-07-19 14:38:02 +03:00
parent 3e4aff6af4
commit 5b1207a425

View File

@ -4207,15 +4207,6 @@ window_schedule_resize(struct window *window, int width, int height)
window->min_allocation.height = min_height;
else
window->min_allocation.height = height;
} else {
/* update min_allocation to allow having a smaller
* pending_allocation and still allow other surfaces type be
* resized correctly */
if (width < window->min_allocation.width)
window->min_allocation.width = width;
if (height < window->min_allocation.height)
window->min_allocation.height = height;
}
if (window->pending_allocation.width < window->min_allocation.width)