fix: MacOS Hide and Show from dock on window close / hide
This commit is contained in:
parent
9c3e08001e
commit
ca5f41684f
1 changed files with 2 additions and 0 deletions
|
|
@ -110,11 +110,13 @@ bool isOSXInterfaceStyleDark()
|
||||||
void forceAppActive()
|
void forceAppActive()
|
||||||
{
|
{
|
||||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||||
|
[[NSApplication sharedApplication] setActivationPolicy:NSApplicationActivationPolicyRegular];
|
||||||
}
|
}
|
||||||
|
|
||||||
void macOSNativeHide()
|
void macOSNativeHide()
|
||||||
{
|
{
|
||||||
[NSApp hide:nil];
|
[NSApp hide:nil];
|
||||||
|
[[NSApplication sharedApplication] setActivationPolicy:NSApplicationActivationPolicyAccessory];
|
||||||
}
|
}
|
||||||
|
|
||||||
IconsTheme getOSXIconsTheme()
|
IconsTheme getOSXIconsTheme()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue