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 - macOS Catalina menu bar inactive on first window focus
Summary: macOS Catalina menu bar inactive on first window focus
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.10
Hardware: x86_64 macOS 10.15
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.12
Depends on:
Blocks:
 
Reported: 2020-01-12 01:50 UTC by Shane Woolcock
Modified: 2020-01-27 22:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.