mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
Cocoa: HideOnDeactivate related removed
This commit is contained in:
parent
8d0f10ed90
commit
4cf9b9ffa9
@ -214,17 +214,6 @@ const
|
||||
{ fsSplash } kCGFloatingWindowLevelKey,
|
||||
{ fsSystemStayOnTop } kCGFloatingWindowLevelKey // NSModalPanelWindowLevel
|
||||
);
|
||||
// Window levels make the form always stay on top, so if it is supposed to
|
||||
// stay on top of the app only, then a workaround is to hide it while the app
|
||||
// is deactivated
|
||||
FormStyleToHideOnDeactivate: array[TFormStyle] of Boolean = (
|
||||
{ fsNormal } False,
|
||||
{ fsMDIChild } False,
|
||||
{ fsMDIForm } False,
|
||||
{ fsStayOnTop } True,
|
||||
{ fsSplash } false,
|
||||
{ fsSystemStayOnTop } False
|
||||
);
|
||||
|
||||
HintWindowLevel = 11; // NSPopUpMenuWindowLevel
|
||||
|
||||
@ -241,11 +230,6 @@ var
|
||||
lvl : NSInteger;
|
||||
begin
|
||||
lvl := CGWindowLevelForKey(FormStyleToWindowLevelKey[AFormStyle]);
|
||||
{$ifdef BOOLFIX}
|
||||
win.setHidesOnDeactivate_(Ord(FormStyleToHideOnDeactivate[AFormStyle]));
|
||||
{$else}
|
||||
win.setHidesOnDeactivate(FormStyleToHideOnDeactivate[AFormStyle]);
|
||||
{$endif}
|
||||
win.setLevel(lvl);
|
||||
if win.isKindOfClass(TCocoaWindow) then
|
||||
TCocoaWindow(win).keepWinLevel := lvl;
|
||||
|
Loading…
Reference in New Issue
Block a user