mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
adds the client example for idle-inhibit
Adds a client example for the idle-inhibit-unsable-v1 protocol. The client creates a surface and requests an idle inhibitor. On pointer BTN_LEFT the inhibitor is destroyed if it exists, or recreated if it was destroyed before. The surfaces colour is based on the idle-inhibit state. Green if an inhibitor exists, yellow if it does not.
This commit is contained in:
parent
50d573b2ca
commit
a0bce86006
3 changed files with 211 additions and 0 deletions
|
|
@ -41,3 +41,10 @@ executable(
|
|||
dependencies: [wayland_client, wlr_protos, wlroots, threads],
|
||||
link_with: lib_shared,
|
||||
)
|
||||
|
||||
executable(
|
||||
'idle-inhibit',
|
||||
'idle-inhibit.c',
|
||||
dependencies: [wayland_client, wlr_protos, wlroots, threads],
|
||||
link_with: lib_shared,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue