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 1035

Summary: Minimizing Fullscreen app will not release mouse
Product: SDL Reporter: zicodxx
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: codepro, jspradlin, vern
Version: 1.2.14   
Hardware: Other   
OS: Windows 7   
Bug Depends on: 1034    
Bug Blocks:    

Description zicodxx 2010-07-28 13:04:26 UTC
And my last bug for today:

Assume I have my Fullscreen application, mouse cursor is hidden. 
I now use ALT+TAB or CTRL+ESC to minimize the aplpication. 
The program minimizes but I cannot move the cursor around my Desktop. I can if I set SDL_ShowCursor before minimizing, but as I reported before, SDL_GetAppState, will not report the app minimized (SDL_APPACTIVE is still set) if ALT+TAB or CTRL+ESC is used.
Comment 1 zicodxx 2010-07-28 13:07:53 UTC
(I accidentially reported this bug for Linux but it was meant to be Windows 7)
Comment 2 Jen Spradlin 2011-04-12 20:22:46 UTC
Thank you for your bug report!

We're busy working on getting SDL 1.3 ready for a high quality release, and want to make sure as many things are fixed there as possible.
Could you check to see if your bug is resolved by the latest SDL 1.3 snapshot?
http://www.libsdl.org/tmp/SDL-1.3.zip

Thanks!
Comment 3 Alex Volkov 2011-04-28 16:16:20 UTC
This happens with the windib driver. It is caused by an infinite while (SDL_PollEvent()); loop which becomes infinite because DIB_PumpEvents() calls DIB_GenerateMouseMotionEvent() which generates an event every time because SetCursorPos() cannot move the pointer to the requested position (negative coordinates off screen). DIB_PumpEvents() calls DIB_GenerateMouseMotionEvent() every time because the SDL_APPMOUSEFOCUS bit never gets cleared and that I think is due to bug #1034.
Comment 4 Vern Jensen 2011-12-20 12:18:48 UTC
Sorry, the system confused me and I marked the wrong report as Resolved.
Comment 5 Sam Lantinga 2011-12-29 01:31:17 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/676a54593bc4