We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1245 - Cursor moving to lower-right corner on second fullscreen->windowed switch
Summary: Cursor moving to lower-right corner on second fullscreen->windowed switch
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Mac OS X 10.6
: P2 normal
Assignee: (disabled) Jørgen Tjernø
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 16:36 UTC by Vern Jensen
Modified: 2013-05-21 02:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vern Jensen 2011-07-06 16:36:30 UTC
Procedure to duplicate:
1) Toggle to fullscreen mode.
2) Toggle to windowed mode.
3) Toggle to fullscreen mode a second time.
4) Toggle to windowed mode (again).

This second time you toggle to windowed mode, the mouse cursor will be in the lower-right corner of the screen. Sometimes it's positioned such that it will activate the system screensaver if the user has set the bottom-right corner as the hotcorner. This will happen regardless of where the mouse cursor was prior to going to windowed mode!

This "cursor warping" is done by SDL. Additionally, I'm unable to "fix" this, as SDL_WarpMouseInWindow() seems to have no effect on MacOS X under the current build.

Note that this does not happen the first time you toggle from fullscreen to windowed. It happens the second (and any subsequent) times.

On MacOS X 10.6.7

SDL-1.3.0-5557

This might seem like a minor bug, but it's activating user's screensavers on them when the game leaves fullscreen to bring up a Mac Open File dialog, which is flaky behavior that I'd like to get fixed asap.
Comment 1 Sam Lantinga 2013-05-21 02:46:03 UTC
I believe this is fixed in the current snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip

Please reopen this bug if that isn't the case.

Thanks!