pub fn add_blocker(surface: &WlSurface, blocker: impl Blocker + Send + 'static)
Available on crate feature
wayland_frontend
only.Expand description
Adds a blocker for the currently queued up state changes of the given surface.
Blockers will delay the pending state to be applied on the next commit until
all of them return the state Released
. Any blocker returning Cancelled
will
discard all changes.
The module will only evaluate blocker states on commit. If a blocker
becomes ready later, a call to CompositorClientState::blocker_cleared
is necessary
to trigger a re-evaluation.