Skip to content

Add Mac bringToFront with NSApp activateIgnoringOtherApps#269

Merged
tonsky merged 1 commit intoHumbleUI:mainfrom
Quezion:mac-bring-to-front
Jun 30, 2023
Merged

Add Mac bringToFront with NSApp activateIgnoringOtherApps#269
tonsky merged 1 commit intoHumbleUI:mainfrom
Quezion:mac-bring-to-front

Conversation

@Quezion
Copy link
Contributor

@Quezion Quezion commented Jun 26, 2023

Also implement IsFront with NSWindow isMainWindow

Mac equivalent to PR #266, where these two functions work to get "launcher functionality" out of my HumbleUI program. I'm also still using JNativeHook to read Alt+Space from the user's keyboard while the launcher program is in the background & then forcing it to the front via BringToFront()

IsFront() is similarly used to determine whether the launcher is already in the foreground so that the launcher can self-minimize.

Also implement IsFront with NSWindow isMainWindow
@Quezion Quezion force-pushed the mac-bring-to-front branch from 99de80c to e266088 Compare June 26, 2023 15:33
@tonsky tonsky merged commit b918d83 into HumbleUI:main Jun 30, 2023
@tonsky
Copy link
Collaborator

tonsky commented Jun 30, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants