| Summary: | Mac: Loss of mouse events after restoring window from thumbnail in Dock | ||
|---|---|---|---|
| Product: | SDL | Reporter: | John Knottenbelt <john> |
| Component: | video | Assignee: | Jørgen Tjernø <jorgen> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72, sdlbug |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Mac OS X 10.8 | ||
| See Also: | https://bugzilla.libsdl.org/show_bug.cgi?id=1996 | ||
| Attachments: | Patch (First fix). | ||
|
Description
John Knottenbelt
2014-03-26 15:26:46 UTC
Created attachment 1598 [details]
Patch (First fix).
I've uploaded a patch for the first way of fixing it. If you want to see the patch for the second way please let me know.
Hey Jorgen, can you look and see if this approach is a good one? Thanks! Unassigning as this account is no longer actively used. I could not reproduce this on OSX 10.6. Has this been fixed along with https://bugzilla.libsdl.org/show_bug.cgi?id=1996 ? I can confirm that the bug is still present as of Mac OS X 10.9.4 with SDL 2.0.3. I have since updated from Mac OS X 10.8 which was the version I was running at the time I discovered the bug. Unfortunately, I don't have access to Mac OS X 10.6 to try it on. Here is a youtube video of the bug running on Mac OS X 10.9.4 and SDL 2.0.3: https://www.youtube.com/watch?v=QjbWJVs1ELM&feature=youtu.be The demonstration program is an SDL tutorial by LazyFoo available at http://lazyfoo.net/tutorials/SDL/17_mouse_events/index.php . We've got an Xcode project file up at https://github.com/alimiv/SDLTest if you want to try building the code yourself. In the video you can see that the bug manifests when the application is restored using the window thumbnail on the far right of the dock. The bug does not trigger if you use the application icon (on the left hand side of the dock). Nope.. seems to be a OSX 10.7+ issue.. John: have you tested with the latest SDL code from Mercurial? Tested today and the bug does not reproduce with latest Mercurial (20 August 2014), so we can close this one down. For what it's worth, at the time of submitting the bug I did test with the latest Mercurial and the patch was against tip-of-tree (2014-03-26). Some patch between now and then must have coincidentally fixed this bug too. I wish I knew which one! Glad to hear it, thanks! |