7#include <AppKit/AppKit.h>
8#include <objc/runtime.h>
23 if (NSApp == nil)
return;
24 Class delClass = (Class)[[NSApp delegate]
class];
25 SEL shouldHandle = sel_registerName(
"applicationShouldHandleReopen:hasVisibleWindows:");
53 if (NSApp == nil)
return;
54 [NSApp activateIgnoringOtherApps:YES];
macOS-specific Dock icon handler.
static MacDockIconHandler * instance()
static MacDockIconHandler * s_instance
void setupDockClickHandler()
bool dockClickHandler(id self, SEL _cmd,...)
void ForceActivation()
Force application activation on macOS.