mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 15:40:32 +02:00
cocoa: return SIZE_FULLSCREEN for fullscreen windows
git-svn-id: trunk@36441 -
This commit is contained in:
parent
794930e8e2
commit
a51b6f1e56
@ -1299,11 +1299,15 @@ begin
|
||||
end;
|
||||
|
||||
function LCLWindowExtension.lclWindowState: Integer;
|
||||
const
|
||||
NSFullScreenWindowMask = 1 shl 14;
|
||||
begin
|
||||
// todo: check fullscreen using NSFullScreenWindowMask
|
||||
if isMiniaturized then
|
||||
Result := SIZE_MINIMIZED
|
||||
else
|
||||
if (styleMask and NSFullScreenWindowMask) <> 0 then
|
||||
Result := SIZE_FULLSCREEN
|
||||
else
|
||||
if isZoomed then
|
||||
Result := SIZE_MAXIMIZED
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user