| Summary: | SDLMain.m: replace CPS* stuff with activateIgnoringOtherApps | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | main | Assignee: | Sam Lantinga <slouken> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sdl-bugzilla |
| Version: | HG 1.2 | ||
| Hardware: | All | ||
| OS: | Mac OS X (All) | ||
| Attachments: | osx_main.patch | ||
|
Description
Ozkan Sezer
2018-03-24 21:16:46 UTC
Any comments on this? This seems reasonable. Does it work? If so, go ahead and commit it. I've been using it in uhexen2 (uhexen2.sf.net) for quite some time, no ill effects reported so far. Will push shortly. A bit late to the party, but this change is badly affecting DOSBox and possibly other programs. With this changeset, starting the DOSBox binary from terminal opens DOSBox in the background and even worse, every keyboard input is sent to the terminal but not to DOSBox. BUT if you put the binary in an app bundle and open the app, all is fine. (In reply to Dominik Reichardt from comment #5) > A bit late to the party, but this change is badly affecting DOSBox and > possibly other programs. > With this changeset, starting the DOSBox binary from terminal opens DOSBox > in the background and even worse, every keyboard input is sent to the > terminal but not to DOSBox. > > BUT if you put the binary in an app bundle and open the app, all is fine. - Do you have a patch? - Does reverting this patch make things work, despite the deprecation warnings, especially on new macOS versions? sorry, I have no patch. I have no clue what it does, only that it took me a while to hunt down where the culprit was. Reverting the patch makes it work correctly again. Compiled and run on macOS 10.14 and also run successfully on macOS 10.15 (though just a late beta of 10.15 not the actual release). [[NSApplication sharedApplication] activateIgnoringOtherApps: YES]; or [NSApplication sharedApplication]; makes no difference. Only the other stuff taken out makes it not work (or work when put back in). Sam, Ryan: Do you have a better fix, or should I just revert this? Go ahead and revert it. Reverted it in all projects. Keeping the bug report open because the issue still needs fixing. |