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 - zwp_pointer_constraints_v1@12: error 1:
Summary: zwp_pointer_constraints_v1@12: error 1:
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.13
Hardware: x86_64 Linux
: P2 critical
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.14
Depends on:
Blocks:
 
Reported: 2020-07-21 02:24 UTC by Vincent Grande
Modified: 2020-08-09 16:16 UTC (History)
1 user (show)

See Also:


Attachments
Possible patch (2.85 KB, patch)
2020-07-22 02:44 UTC, Tudor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.