Skip to content

[HIGH] [SDL #8111] [x11] events don't work in testnative #152

Description

@Chevalier12

Tracking upstream SDL issue libsdl-org#8111

  • Priority: HIGH — provisional triage from SDL-OPEN-ISSUES-PRIORITIES.md, NOT an official SDL severity.
  • Source: [x11] events don't work in testnative libsdl-org/SDL#8111
  • Original title: [x11] events don't work in testnative
  • Reported by: madebr
  • Upstream state at capture: open; state reason:
  • Created: 2023-08-11T12:03:15.0000000Z; updated: 2024-10-06T17:33:42.0000000Z
  • Snapshot captured: 2026-09-07T17:43:48.8360935Z
  • Upstream labels:
  • Upstream milestone (not affected versions): 3.x (https://github.com/libsdl-org/SDL/milestone/6)
  • Upstream assignees: icculus
  • Upstream comments included: 3
  • Locked: False; lock reason:
  • Triage rationale: Input absent sau rezultate de randare greșite raportate; verificați regresia și scenariul activ.

This is an attributed tracking copy, not a locally reproduced or confirmed Graphix defect. Applicability, affected versions and ownership still require validation. No automatic synchronization or resolution is implied. Original descriptions and comments are preserved literally in Markdown code blocks to avoid notifying mentioned users or resolving SDL references against Graphix. Attachments, logs, patches and other linked resources remain at their original URLs; external resource contents and edit/event histories are not copied.

Graphix validation checklist

  • Read the current upstream issue and discussion.
  • Establish affected versions/platforms and whether Graphix is affected.
  • Reproduce the reported behavior and identify the invariant owner.
  • Implement an ownership-correct fix or document an upstream/external resolution.
  • Verify regression coverage and applicable platform/runtime gates.

Original description

For example, the `SDL_EVENT_QUIT` event is never triggered (checked with a debugger).
This is the complete stdout after clicking on the `x`:
```
INFO: Creating native window for x11 driver
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  146 ()
  Minor opcode of failed request:  1
  Resource id in failed request:  0x1200001
  Serial number of failed request:  4303
  Current serial number in output stream:  4304
```

Original discussion (chronological)

Original comment by slouken

Source: libsdl-org#8111 (comment)
Created: 2023-11-08T06:22:29.0000000Z; updated: 2023-11-08T06:22:29.0000000Z; association: COLLABORATOR

Yeah, foreign windows aren't managed by SDL in any way. This is a common request though, so I'll put it on the SDL 3.0 milestone.

Original comment by slouken

Source: libsdl-org#8111 (comment)
Created: 2024-08-04T16:11:00.0000000Z; updated: 2024-08-04T16:11:00.0000000Z; association: COLLABORATOR

So we've enabled mouse and keyboard events. The close button still doesn't work though.

@icculus, even if I register the WM protocols, we still don't get ClientMessage events for the window. Can you take a look?

Original comment by slouken

Source: libsdl-org#8111 (comment)
Created: 2024-10-06T17:33:38.0000000Z; updated: 2024-10-06T17:33:38.0000000Z; association: COLLABORATOR

We are scoping work for the SDL 3.2.0 release, so please let us know if this is a showstopper for you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions