Skip to content

[Wayland] Implement ext-idle-notify-v1 protocol#842

Open
Sunderland93 wants to merge 3 commits into
linuxmint:masterfrom
Sunderland93:ext_idle_notify
Open

[Wayland] Implement ext-idle-notify-v1 protocol#842
Sunderland93 wants to merge 3 commits into
linuxmint:masterfrom
Sunderland93:ext_idle_notify

Conversation

@Sunderland93

Copy link
Copy Markdown
Contributor

This PR implements the ext-idle-notify-v1 Wayland protocol, allowing desktop components to receive user idle/active notifications, which is useful for applications that track user activity. It leverages Muffin's existing MetaIdleMonitor backend, extending it to support bypassing inhibitors.

Not tested yet.

Introduce meta_idle_monitor_add_idle_watch_full() which allows
creating idle watches that ignore active session inhibitors.
Implement the ext_idle_notification_v1 interface by connecting it to
the MetaIdleMonitor backend.

- Add the MetaWaylandIdleNotification struct to manage the lifetime
  of idle and active watches.
- Implement 'idled' and 'resumed' events to correctly notify clients
  when the system transitions into and out of the idle state.
- Handle inhibitor bypass by utilizing the newly introduced
  meta_idle_monitor_add_idle_watch_full() function when the
  ignore_inhibitors flag is set.
- Ensure proper resource cleanup in ext_idle_notification_destructor
  to prevent memory and timer leaks when Wayland clients disconnect.
@Sunderland93 Sunderland93 changed the title [Wayland] Implement ext-idle-noify-v1 protocol [Wayland] Implement ext-idle-notify-v1 protocol Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant