| Summary: | OSX: Window position and global mouse coord spaces are different | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Tim McDaniel <tmcdaniel> |
| Component: | video | Assignee: | Jørgen Tjernø <jorgen> |
| Status: | RESOLVED ABANDONED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | CC: | amaranth72, icculus, sdlbug |
| Version: | don't know | ||
| Hardware: | All | ||
| OS: | Mac OS X (All) | ||
| Attachments: |
Patch
Removed ASL_SDL macro switches |
||
|
Description
Tim McDaniel
2014-07-18 20:50:18 UTC
I'd like to reiterate that this was a fairly fundamental change (and a breaking change for us). If SDL OSX is to really support multi-display configurations, this is especially problematic. If the real concern is preventing windows from going under the menubar, then perhaps a solution involving something like overriding [NSWindow constrainFrameRect] would be less problematic than redefining the global window coord space for the main display. I recommend reverting SDL_cocoawindow.m revisions 8801, 8739, 8729. Created attachment 1808 [details]
Patch
This patch essentially reverts the Cocoa window position coord space to be relative to the top of the main screen. Also fixes a few other Cocoa mouse issues. Note that the ASL_SDL macro is simply a macro we define when building our SDL lib, used to mark our changes to the SDL code.
Created attachment 1810 [details]
Removed ASL_SDL macro switches
Good point. Your patches are applied: https://hg.libsdl.org/SDL/rev/c5e33f9a0d03 I'm assigning this bug to Jorgen so he can look at [NSWindow constrainFrameRect] and see if that achieves his goals. (In reply to Sam Lantinga from comment #4) > I'm assigning this bug to Jorgen so he can look at [NSWindow > constrainFrameRect] and see if that achieves his goals. Ping; is there anything we need to do here still, Jorgen? We're triaging for 2.0.4 right now. --ryan. Good question -- not sure when I'll have a chance to look. Mouse coordinates on Mac have always been a PITA in SDL. Hello, and sorry if you're getting dozens of copies of this message by email. We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc. Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report. So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues. (please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!) Thanks, --ryan. |