Skip to content

[RFC] WIP: implement v1 idle inhibit protocol

Vasilis Liaskovitis requested to merge vliaskov/mutter:issue-20-wip into main

This is an RFC patch for implementing the idle-inhibit protocol #20 (closed)

I don't expect it to be merged at this stage. I'd like to hear feedback if this is approach is correct, and if there is a better one.

SurfaceActor gets 2 new signals SURFACE_IDLE_INHIBIT, SURFACE_IDLE_RESTORE

The idle inhibitor handles the signals and calls Inhibit and UnInhibit methods of org.freedesktop.Screensaver when the surface is not obscured or when it is obscured respectively.

meta_surface_actor_is_obscured() is checked in meta_window_actor_handle_updates(),and if idle-inhibit has been requested, the corresponding signal is sent, and handled by the inhibitor. Is this the correct place and method for checking the surface visibility?

Tested with mpv /mnt/devel/mpv-build/mpv/build/mpv -v --vo=gpu --no-audio --gpu-context=wayland

#20 (closed)

Edited by Florian Müllner

Merge request reports