Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libXfixes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • lib
  • libXfixes
  • Merge requests
  • !1

xfixes: Add ClientDisconnectMode

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Olivier Fourdan requested to merge ofourdan/libxfixes:xfixes-ignore-client into master Mar 16, 2021
  • Overview 8
  • Commits 1
  • Changes 3

The Xserver itself is capable of terminating itself once all X11 clients are gone, yet in a typical full session, there are a number of X11 clients running continuously (e.g. the Xsettings daemon, IBus, etc.).

Those always-running clients will prevent the Xserver from terminating, because the actual number of X11 clients will never drop to 0.

To solve this issue directly at the Xserver level, this add new entries to the XFixes extension to let the X11 clients themselves specify the disconnect mode they expect.

Typically, those X11 daemon clients would specify the disconnect mode XFixesClientDisconnectModeShutdown to let the Xserver know that they should not be accounted for when checking the remaining clients prior to terminate.

A one-time daemon that can be safely stopped at server reset would use XFixesClientDisconnectModeReset to instruct the Xserver to reset even though that client is still running.

Signed-off-by: Olivier Fourdan ofourdan@redhat.com

See-also: xorg/proto/xorgproto!33 (merged)
See-also: xorg/xserver!631 (merged)

Edited Mar 22, 2021 by Olivier Fourdan
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: xfixes-ignore-client