From 6e71844910ee5c80b2a31dee1b60871fdee14530 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Mon, 21 Apr 2014 18:38:25 +0100 Subject: x11: Fixes Min[Width|Height] and Max[Width|Height] of top level windows. --- src/corelib/x11/fpg_x11.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/corelib/x11') diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas index bc9c9dbd..0f7e7cf0 100644 --- a/src/corelib/x11/fpg_x11.pas +++ b/src/corelib/x11/fpg_x11.pas @@ -2378,9 +2378,11 @@ begin if (FWindowType <> wtChild) and (waSizeable in FWindowAttributes) then begin - hints.flags := hints.flags or PMinSize; + hints.flags := hints.flags or PMinSize or PMaxSize; hints.min_width := FMinWidth; hints.min_height := FMinHeight; + hints.max_width := FMaxWidth; + hints.max_height := FMaxHeight; end else begin -- cgit v1.2.3-70-g09d2