Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,605
    • Issues 1,605
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 219
    • Merge requests 219
  • 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
  • GNOMEGNOME
  • gtkgtk
  • Merge requests
  • !2226

Add support for idle inhibition on Wayland

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Link Mauve requested to merge linkmauve/gtk:idle-inhibit into master Jul 11, 2020
  • Overview 23
  • Commits 2
  • Pipelines 8
  • Changes 6

This uses the idle-inhibit protocol from wayland-protocols, to attach an inhibitor to the GdkSurface. It can’t do anything if the GtkWindow isn’t passed, which might warrant some documentation change to encourage users to not use NULL for this argument.

I’m not very familiar with the internals of GTK, so let me know if it would be better architectured some other way, I mostly copied over the Quartz variant and adapted it to Wayland.

This has been tested on Sway using testlogout.

Fixes #2202 (closed).

Edited Jul 11, 2020 by Link Mauve
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: idle-inhibit