Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac: Window jumps when clicking top bar and changing relative mouse mode immediately afterwards #4469

Closed
samojordan opened this issue Jun 24, 2021 · 1 comment
Assignees
Milestone

Comments

@samojordan
Copy link

We observe the following problem on our Mac with Mac OS 10.15.6: when the user puts the window into background (SDL_WINDOWEVENT_FOCUS_LOST) we disable relative mouse mode and when the window gets focus again (SDL_WINDOWEVENT_FOCUS_GAINED) we enable relative mouse mode. When the window is located behind other windows and we click the top bar, the window jumps to another position (it's officially a window move as confirmed by recieving the SDL_WINDOWEVENT_MOVED event afterwards). This does not happen when we don't modify relative mouse mode. It's 100% reproducible in our application. We currently have no workaround for this problem. We would appreciate if someone could try to reproduce this in a simpler setup.

@slouken slouken self-assigned this Jul 23, 2021
@slouken slouken added this to the 2.0.16 milestone Jul 23, 2021
slouken added a commit that referenced this issue Jul 27, 2021
slouken added a commit that referenced this issue Jul 27, 2021
@slouken
Copy link
Collaborator

slouken commented Jul 27, 2021

This is fixed by 88e4755.

By the way, you shouldn't need to enable/disable relative mode on focus changes. SDL should take care of this automatically. If you have a platform where that's not the case, please report it as a bug and we'll fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants