pub trait SessionLockHandler: Sized {
    // Required methods
    fn locked(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        session_lock: SessionLock
    );
    fn finished(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        session_lock: SessionLock
    );
    fn configure(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        surface: SessionLockSurface,
        configure: SessionLockSurfaceConfigure,
        serial: u32
    );
}
Expand description

Handler trait for session lock protocol.

Required Methods§

source

fn locked( &mut self, conn: &Connection, qh: &QueueHandle<Self>, session_lock: SessionLock )

The session lock is active, and the client may create lock surfaces.

source

fn finished( &mut self, conn: &Connection, qh: &QueueHandle<Self>, session_lock: SessionLock )

Session lock is not active and should be destroyed.

This may be sent immediately if the compositor denys the requires to create a lock, or may be sent some time after lock.

source

fn configure( &mut self, conn: &Connection, qh: &QueueHandle<Self>, surface: SessionLockSurface, configure: SessionLockSurfaceConfigure, serial: u32 )

Compositor has requested size for surface.

Object Safety§

This trait is not object safe.

Implementors§