summaryrefslogtreecommitdiff
path: root/src/corelib/x11/fpg_x11.pas
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/x11/fpg_x11.pas')
-rw-r--r--src/corelib/x11/fpg_x11.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas
index 667d4f63..5a4b6ccf 100644
--- a/src/corelib/x11/fpg_x11.pas
+++ b/src/corelib/x11/fpg_x11.pas
@@ -2127,6 +2127,9 @@ begin
xapplication.DefaultVisual,
mask, @attr);
+ if wh = 0 then
+ raise Exception.Create('fpGUI/X11: Failed to create window ' + ClassName);
+
FWinHandle := wh;
FBackupWinHandle := wh;
@@ -2154,6 +2157,7 @@ begin
end;
end;
+ FillChar(hints, sizeof(hints), 0);
hints.flags := 0;
if not (waAutoPos in FWindowAttributes) then