| Summary: | Window Focus Mouse-Down Event Discrepancy across platforms (win32/linux/osx) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | bazz <mbazzinotti> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72 |
| Version: | 2.0.4 | ||
| Hardware: | Other | ||
| OS: | Other | ||
| URL: | https://www.youtube.com/watch?v=MN9c-Pyctvg&feature=youtu.be | ||
|
Description
bazz
2016-03-30 03:22:00 UTC
Here's a demonstration you can try that shows a native OSX app doing what I expect the OSX SDL app to do: You can try this with a native OSX App called "Calculator" in /Applications/Calculator -- simply unfocus the calculator by having another app window focused .. Then focus the calculator by clicking over one of its number buttons -- you will see the number actually entered as a valid input to the calculator upon it being focused. <-- This is what I desire in my OSX SDL app! -- which is how my Linux/Windows SDL apps behave! I've added a SDL hint to control the behaviour in OS X: https://hg.libsdl.org/SDL/rev/6dd5f49e4a77 FYI, the behavior in 2.0.5 will be consistent across platforms, where the first click on the window will bring it to the foreground and not be delivered to the application. You can set the hint SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH to "1" to have the click delivered to the application, on all platforms. |