summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2014-04-21 18:38:25 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2014-04-21 18:38:25 +0100
commit6e71844910ee5c80b2a31dee1b60871fdee14530 (patch)
tree267aa6e89a5fd377046e9778f735160c7e9c55a7 /src/corelib/x11
parentb7007b4b0cac946a7b6ac60551dbd4f688e3000b (diff)
downloadfpGUI-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.pas4
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