Skip to content

Commit cdbf619

Browse files
committed
Swapping is just kind of weird on MacOS. Doesn't change until clicking away and back.
1 parent 60c0c44 commit cdbf619

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/video/cocoa/SDL_cocoavideo.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ bool Cocoa_SetWindowMenuBar(SDL_Window *window, SDL_MenuBar *menu_bar)
376376
}
377377

378378
// We don't actually set the menubar until the window is in focus
379-
if (!menu_bar->window->keyboard_focus) {
379+
380+
if (!(menu_bar->window->flags & SDL_WINDOW_INPUT_FOCUS)) {
380381
return true;
381382
}
382383

0 commit comments

Comments
 (0)