cocoa: return SIZE_FULLSCREEN for fullscreen windows

git-svn-id: trunk@36441 -
This commit is contained in:
paul 2012-03-30 07:59:33 +00:00
parent 794930e8e2
commit a51b6f1e56

View File

@ -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