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 - Resizing a window with hidden cursor causes window to resize to 0x0 px
Summary: Resizing a window with hidden cursor causes window to resize to 0x0 px
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.5
Hardware: x86_64 Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-21 21:18 UTC by Temtaime
Modified: 2017-08-11 18:04 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 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