Go to index / Go to protocols

wlr_input_inhibit_unstable_v1 ↗

wlr_input_inhibit_unstable_v1
zwlr_input_inhibit_manager_v1

Version 1

inhibits input events to other clients

Clients can use this interface to prevent input events from being sent to any surfaces but its own, which is useful for example in lock screen software. It is assumed that access to this interface will be locked down to whitelisted clients by the compositor.

Note! This protocol is deprecated and not intended for production use. For screen lockers, use the ext-session-lock-v1 protocol.

zwlr_input_inhibit_manager_v1
request get_inhibitor(
    id: new_id<zwlr_input_inhibitor_v1>,
)

    inhibit input to other clients

    Activates the input inhibitor. As long as the inhibitor is active, the compositor will not send input events to other clients.

    zwlr_input_inhibit_manager_v1
    enum error {
        already_inhibited = 0,
    }
    • already_inhibited — an input inhibitor is already in use on the compositor

    wlr_input_inhibit_unstable_v1
    zwlr_input_inhibitor_v1

    Version 1

    inhibits input to other clients

    While this resource exists, input to clients other than the owner of the inhibitor resource will not receive input events. Any client which previously had focus will receive a leave event and will not be given focus again. The client that owns this resource will receive all input events normally. The compositor will also disable all of its own input processing (such as keyboard shortcuts) while the inhibitor is active.

    The compositor may continue to send input events to selected clients, such as an on-screen keyboard (via the input-method protocol).

    zwlr_input_inhibitor_v1
    request destroy()
    Destructor

      destroy the input inhibitor object

      Destroy the inhibitor and allow other clients to receive input.