wlr input inhibitor
客户端可以使用此接口阻止输入事件发送到除自身之外的任何表面,例如在锁屏软件中使用。假设对此接口的访问将被合成器锁定为白名单客户端。
注意!此协议已弃用,不打算用于生产。对于锁屏程序,请使用 ext-session-lock-v1 协议。
get_inhibitor(id: new_id<zwlr_input_inhibitor_v1>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<zwlr_input_inhibitor_v1> |
激活输入抑制器。只要抑制器处于活动状态,合成器就不会向其他客户端发送输入事件。
error { already_inhibited }
参数 | 值 | 描述 |
|---|---|---|
| already_inhibited | 0 | 合成器上已在使用输入抑制器 |
当此资源存在时,输入抑制器所有者之外的客户端将不会收到输入事件。任何之前拥有焦点的客户端将收到离开事件,并且不会再次获得焦点。拥有此资源的客户端将正常接收所有输入事件。合成器也会在抑制器活动时禁用其所有自身的输入处理(如键盘快捷键)。
合成器可以继续向选定的客户端发送输入事件,例如屏幕键盘(通过 input-method 协议)。
合成器支持
Copyright
Copyright © 2018 Drew DeVault
Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the copyright holders not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. The copyright holders make no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.