Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • W weston
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 362
    • Issues 362
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 124
    • Merge requests 124
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • waylandwayland
  • weston
  • Issues
  • #666
Closed
Open
Issue created Sep 20, 2022 by manuel alfayate@vanfanelContributor

SDL2 programs cause a failed assertion on Weston when program quits while pointer is confined

All SDL2 programs with a confined pointer cause this assert on the Weston code to fail when they quit:

https://gitlab.freedesktop.org/wayland/weston/-/blob/main/libweston/input.c#L4745

The problem is that, on SDL2 window closing, maybe_warp_confined_pointer() is called, and at that point confine_region is already NULL.

The consequence of this is that closing any SDL2 program with a confined pointer causes Weston to suddenly die, which isn't nice at all.

I have an small SDL2 test program here: https://github.com/vanfanel/LBE_DOCS/blob/master/SDL2-basic-example/ppp.c

...but all SDL2 programs with confined pointer are affected (Scummvm, etc).

I consider this is a Weston bug because it's only happening on this compositor, but of course I could be wrong.

Edited Sep 20, 2022 by manuel alfayate
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking