Skip to content

Commit

Permalink
fix constraint calculation for max size
Browse files Browse the repository at this point in the history
backport of f3caad7
  • Loading branch information
totaam committed Dec 14, 2023
1 parent 6b83eab commit 824d488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/gtk_common/gtk3/gdk_bindings.pyx
Expand Up @@ -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)
Expand Down

0 comments on commit 824d488

Please sign in to comment.