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 3199 - SDL_SetWindowSize and unwanted window movement
Summary: SDL_SetWindowSize and unwanted window movement
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.2
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-05 21:50 UTC by Solra Bizna
Modified: 2017-08-12 22:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Solra Bizna 2015-12-05 21:50:23 UTC
I implemented the workaround for bug #3198 into my "real app", but now every time SDL_SetWindowSize is called, the window moves down and to the right by the size of my left and top window decorations. I suspect this is another manifestation of the underlying problem bug #1300 dealt with. I tried working around it with SDL_GetWindowPosition before the call, SDL_SetWindowPosition after, and another SDL_GetWindowPosition to be sure it stuck... but the window seems to move some time after the expose event is generated for that window.

The test program I gave for #3198 also displays this bug. As with #3198, I'm running on Linux, under X11, using Sawfish.
Comment 1 Ryan C. Gordon 2015-12-29 05:32:37 UTC
Out of curiousity, are you on SDL 2.0.3? I believe we fixed this a few months ago in revision control, but I could be wrong.

--ryan.
Comment 2 Ryan C. Gordon 2015-12-30 06:32:50 UTC
(In reply to Ryan C. Gordon from comment #1)
> Out of curiousity, are you on SDL 2.0.3? I believe we fixed this a few
> months ago in revision control, but I could be wrong.

No, wait, I'm thinking of Bug #3085, which isn't fixed, but I'm about to look into...so you should get some results soon, I hope.

--ryan.