mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
a0bce86006
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.
51 lines
1.2 KiB
Meson
51 lines
1.2 KiB
Meson
lib_shared = static_library(
|
|
'shared',
|
|
['support/shared.c', 'support/cat.c', 'support/ini.c', 'support/config.c'],
|
|
dependencies: wlroots,
|
|
include_directories: include_directories('support')
|
|
)
|
|
|
|
threads = dependency('threads')
|
|
|
|
executable('simple', 'simple.c', dependencies: wlroots, link_with: lib_shared)
|
|
executable('pointer', 'pointer.c', dependencies: wlroots, link_with: lib_shared)
|
|
executable('touch', 'touch.c', dependencies: wlroots, link_with: lib_shared)
|
|
executable('tablet', 'tablet.c', dependencies: wlroots, link_with: lib_shared)
|
|
executable('multi-pointer', 'multi-pointer.c', dependencies: wlroots,
|
|
link_with: lib_shared)
|
|
|
|
executable(
|
|
'rotation',
|
|
'rotation.c',
|
|
dependencies: wlroots,
|
|
link_with: lib_shared,
|
|
)
|
|
|
|
executable(
|
|
'output-layout',
|
|
'output-layout.c',
|
|
dependencies: wlroots,
|
|
link_with: lib_shared,
|
|
)
|
|
|
|
executable(
|
|
'screenshot',
|
|
'screenshot.c',
|
|
dependencies: [wayland_client, wlr_protos, wlroots],
|
|
link_with: lib_shared,
|
|
)
|
|
|
|
executable(
|
|
'idle',
|
|
'idle.c',
|
|
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,
|
|
)
|