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 3708

Summary: Resizing a window with hidden cursor causes window to resize to 0x0 px
Product: SDL Reporter: Temtaime <temtaime>
Component: *don't know*Assignee: Sam Lantinga <slouken>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.5   
Hardware: x86_64   
OS: Windows 10   

Description Temtaime 2017-07-21 21:18:40 UTC
After upgrading to 2.0.5 i've noticed that resizing a window with hidden cursor makes something weird : the window becomes of the size 0x0 and doesn't resize after it at all.
With 2.0.4 it worked.
Comment 1 Temtaime 2017-07-21 21:20:04 UTC
I think there's was a change that moves a cursor to the center of the window, but does that even when an user clicked on the window frame, so user starts to resize, and sdl sees that window is active again and moves the cursor to the center, until the window becomes 0x0.
Comment 2 Temtaime 2017-07-21 21:28:38 UTC
Forgot to say, the bug appears when SDL_SetRelativeMouseMode(true) was called