This is an issue that has been quite bothersome for our engineers and users of our product built on SDL. Here is how to reproduce:
macOS only:
-
Open up an SDL application, we've tested our app and the "Hello, World" SDL basic demo also reproduces the behavior.
-
Open up other applications
-
Focus some non-SDL application, say VS Code.
-
Go to Mission Control view (start with your fingers pinched together in the center of the trackpad, and expand outwards to bring the pan-out view of all the applications on your macOS desktop)
-
Click on the SDL application window. It will either:
- Flash very quickly the previous application you had focused (here VS Code in this example) and then display the SDL application
- or it will flash the previous application you had focused, and not focus the SDL application (here I would still be shown VS Code). If this happens, I have to do the whole process again and the second time it will correctly focus the SDL application
This should be easy to reproduce (it is almost 100% reproducible for me when following these instructions).
I am on M1 MacBook Pro Mid-2020 w/ macOS Monterey, but we've confirmed this is reproducible on much older macOS hardware and older macOS versions as well (all the way down to Sierra and 2012 MacBooks).
This sounds to me like probably a short fix. If that's the case, would love to know the solution so we can manually patch SDL on our end and not have to wait until the next release.
Thanks all, as always big supporters of SDL over at @whisthq!
This is an issue that has been quite bothersome for our engineers and users of our product built on SDL. Here is how to reproduce:
macOS only:
Open up an SDL application, we've tested our app and the "Hello, World" SDL basic demo also reproduces the behavior.
Open up other applications
Focus some non-SDL application, say VS Code.
Go to Mission Control view (start with your fingers pinched together in the center of the trackpad, and expand outwards to bring the pan-out view of all the applications on your macOS desktop)
Click on the SDL application window. It will either:
This should be easy to reproduce (it is almost 100% reproducible for me when following these instructions).
I am on M1 MacBook Pro Mid-2020 w/ macOS Monterey, but we've confirmed this is reproducible on much older macOS hardware and older macOS versions as well (all the way down to Sierra and 2012 MacBooks).
This sounds to me like probably a short fix. If that's the case, would love to know the solution so we can manually patch SDL on our end and not have to wait until the next release.
Thanks all, as always big supporters of SDL over at @whisthq!