From 824d488b11d78df580657181fcb10d8021c6c78d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 14 Dec 2023 15:00:58 +0700 Subject: [PATCH] fix constraint calculation for max size backport of f3caad7d11975642562ef20eb9eacc03d6e01212 --- xpra/gtk_common/gtk3/gdk_bindings.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/gtk_common/gtk3/gdk_bindings.pyx b/xpra/gtk_common/gtk3/gdk_bindings.pyx index f22ddc1a68..2ee77de765 100644 --- a/xpra/gtk_common/gtk3/gdk_bindings.pyx +++ b/xpra/gtk_common/gtk3/gdk_bindings.pyx @@ -107,7 +107,7 @@ def calc_constrained_size(int width, int height, object hints): if max_width>0: width = min(max_width, width) if max_height>0: - height = max(min_height, height) + height = min(max_height, height) base_width, base_height = getintpair("base-size", 0, 0) increment_x, increment_y = getintpair("increment", 0, 0)