From 8572cf76297b7085f002c3fcb776b003eb4a233e Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Mon, 17 May 2010 09:40:33 +0200 Subject: GDI: did not handle waBorderLess window attribute. --- src/corelib/gdi/fpg_gdi.pas | 3 +++ src/corelib/x11/fpg_x11.pas | 1 + 2 files changed, 4 insertions(+) diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas index 0b4ab441..df10d0a6 100644 --- a/src/corelib/gdi/fpg_gdi.pas +++ b/src/corelib/gdi/fpg_gdi.pas @@ -1403,6 +1403,9 @@ begin AdjustWindowStyle; + if ((WindowType = wtWindow) or (WindowType = wtModalForm)) and (waBorderLess in FWindowAttributes) then + FWinStyle := WS_POPUP; // this is different to wtPopop (toolwindow, hint window) because it can steal focus like a normal form + if waAutoPos in FWindowAttributes then begin FLeft := TfpgCoord(CW_USEDEFAULT); diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas index 24c5d3c3..26c61a69 100644 --- a/src/corelib/x11/fpg_x11.pas +++ b/src/corelib/x11/fpg_x11.pas @@ -1398,6 +1398,7 @@ begin end; AdjustWindowStyle; + wh := XCreateWindow(xapplication.Display, pwh, FLeft, FTop, FWidth, FHeight, 0, CopyFromParent, -- cgit v1.2.3-70-g09d2