diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2014-04-21 18:38:25 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2014-04-21 18:38:25 +0100 |
commit | 6e71844910ee5c80b2a31dee1b60871fdee14530 (patch) | |
tree | 267aa6e89a5fd377046e9778f735160c7e9c55a7 /src/corelib/x11 | |
parent | b7007b4b0cac946a7b6ac60551dbd4f688e3000b (diff) | |
download | fpGUI-6e71844910ee5c80b2a31dee1b60871fdee14530.tar.xz |
x11: Fixes Min[Width|Height] and Max[Width|Height] of top level windows.
Diffstat (limited to 'src/corelib/x11')
-rw-r--r-- | src/corelib/x11/fpg_x11.pas | 4 |
1 files changed, 3 insertions, 1 deletions
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 |