We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4937

Summary: macOS Catalina menu bar inactive on first window focus
Product: SDL Reporter: Shane Woolcock <samahnub>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-2.0.12
Version: 2.0.10   
Hardware: x86_64   
OS: macOS 10.15   

Description Shane Woolcock 2020-01-12 01:50:09 UTC
Likely related to https://bugzilla.libsdl.org/show_bug.cgi?id=3051

On initial run, the macOS menu bar will not accept input until task switching away and back.  Apps also appear to not accept single clicks (but double clicks work?)

Only occurs on Catalina, I can't reproduce on Mojave (haven't tried pre-Mojave).  It doesn't matter what window flags are passed in.

Bare minimum example:

---

int main(int argc, const char * argv[]) {
    SDL_Init(SDL_INIT_VIDEO);
    SDL_CreateWindow("Test", 0, 0, 1024, 768, 0);
    SDL_Event event;
    do {
        SDL_PollEvent(&event);
    } while (event.type != SDL_QUIT);
    SDL_Quit();
    return 0;
}
Comment 1 Ryan C. Gordon 2020-01-27 22:15:59 UTC
This is fixed in https://hg.libsdl.org/SDL/rev/b7592c05a293, thanks!

--ryan.