From 5b1207a425f1269e344b86dc9c44648c795f166b Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 19 Jul 2023 14:38:02 +0300 Subject: [PATCH] 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 955511809558424bb74279df0f88465087e35723. Fixes: #780 Signed-off-by: Marius Vlad --- clients/window.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/clients/window.c b/clients/window.c index a4856b1c..30f64109 100644 --- a/clients/window.c +++ b/clients/window.c @@ -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)