Go to index / Go to protocols

hyprland_lock_notify_v1 ↗

hyprland_lock_notify_v1
hyprland_lock_notifier_v1

Version 1
Compositor Support
Version 1
hyprland 0.52.1

lock notification manager

This interface allows clients to monitor whether the wayland session is locked or unlocked.

hyprland_lock_notifier_v1
request destroy()
Destructor

    destroy the manager

    Destroy the manager object. All objects created via this interface remain valid.

    hyprland_lock_notifier_v1
    request get_lock_notification(
        id: new_id<hyprland_lock_notification_v1>,
    )

      create a notification object

      Create a new lock notification object.

      If the session is already locked when calling this method, the locked event shall be sent immediately.

      hyprland_lock_notify_v1
      hyprland_lock_notification_v1

      Version 1

      lock notification

      This interface is used by the compositor to send lock notification events to clients.

      Typically the "locked" and "unlocked" events are emitted when a client locks/unlocks the session via ext-session-lock, but the compositor may choose to send notifications for any other locking mechanisms.

      The compositor must notfiy after possible transition periods between locked and unlocked states of the session. In the context of ext-session-lock, that means the "locked" event is expected to be sent after the session-lock client has presented a lock screen frame on every output, which corresponds to the "locked" event of ext-session-lock.

      hyprland_lock_notification_v1
      request destroy()
      Destructor

        destroy the notification object

        Destroy the notification object.

        hyprland_lock_notification_v1
        event locked()

          session is locked

          This event is sent when the wayland session is locked.

          It's a compositor protocol error to send this event twice without an unlock event in-between.

          hyprland_lock_notification_v1
          event unlocked()

            session is no longer locked

            This event is sent when the wayland session is unlocked.

            It's a compositor protocol error to send this event twice without an locked event in-between. It's a compositor protocol error to send this event prior to any locked event.