Skip to content

Commit 93b0b21

Browse files
committed
macOS: Update Window::bringToFront (?)
1 parent 94f75cf commit 93b0b21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

macos/cc/WindowMac.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,9 @@ static CVReturn displayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
536536

537537
extern "C" JNIEXPORT void JNICALL Java_io_github_humbleui_jwm_WindowMac__1nBringToFront
538538
(JNIEnv* env, jobject obj) {
539+
jwm::WindowMac* instance = reinterpret_cast<jwm::WindowMac*>(jwm::classes::Native::fromJava(env, obj));
540+
NSWindow* nsWindow = instance->fNSWindow;
541+
[nsWindow makeMainWindow];
539542
[NSApp activateIgnoringOtherApps:YES];
540543
}
541544

0 commit comments

Comments
 (0)