Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • xserver xserver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 940
    • Issues 940
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 124
    • Merge requests 124
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • xserverxserver
  • Merge requests
  • !954

Xwayland: add an empty XWayland extension

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Peter Hutterer requested to merge whot/xserver:wip/xwayland-extension into master Jul 28, 2022
  • Overview 24
  • Commits 1
  • Pipelines 4
  • Changes 6

This is a quick hack in response to !952 (closed).

Right now, to check if the X server is XWayland or not we rely on various properties. A more reliable way is to have an actual Xwayland-specific extension. Properties can be set by the client, initializing an extension can only be done by the server.

An extension doesn't need to provide events or errors (many existing don't) and it doesn't need to provide requests either. So we can just initialize an empty extension as a marker that this is XWayland.

The minor risk here is that if we every do want an XWayland extension and start adding requests, it'll become slightly more complicated for clients to figure out if it's the empty one or one that exists.

cc @emersion, @daenzer, @ofourdan

Edited Aug 11, 2022 by Peter Hutterer
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wip/xwayland-extension