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 5240

Summary: zwp_pointer_constraints_v1@12: error 1:
Product: SDL Reporter: Vincent Grande <shoober420>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: me
Version: 2.0.13Keywords: target-2.0.14
Hardware: x86_64   
OS: Linux   
Attachments: Possible patch

Description Vincent Grande 2020-07-21 02:24:49 UTC
Using Wayland+Sway with AMD+Mesa, full screen bugs will present a sway error in the terminal.

zwp_pointer_constraints_v1@12: error 1: a pointer constraint with a wl_pointer of the same wl_seat is already on this surface

Upon further investigation, I was able to narrow it down to the issue being the SDL2 development master branch builds I use. Upon installed the official 2.0.12 release, the games worked fine full screen. Here is the GitHub issue page I made about this issue that goes in depth about the issue.

https://github.com/swaywm/sway/issues/5562
Comment 1 Tudor 2020-07-22 02:44:04 UTC
Created attachment 4422 [details]
Possible patch

Here is a possible patch for the issue. It more gracefully handles the case where `SDL_SetWindowGrab` is used alongside `SDL_SetRelativeMouseMode`. I haven't tested it myself, though it has been tested by the reporter in the linked issue, and resolves the issue.
Comment 2 Ryan C. Gordon 2020-08-09 16:16:50 UTC
This patch is now https://hg.libsdl.org/SDL/rev/50d34ec3ac71, thanks!

--ryan.