keyboard-shortcuts-inhibit: Add client example

Again, copy'n'search'n'replace the idle inhibit example to become a
simple keyboard shortcuts inhibit example, adding the active and
inactive events.

Getting the initial inhibitor needs to be done later than for idle
inhibit to avoid an error "xdg_surface has never been configured".

Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
This commit is contained in:
Michael Weiser 2020-02-14 19:26:40 +01:00 committed by Simon Ser
parent 471b873de3
commit 208e6da3c3
2 changed files with 271 additions and 0 deletions

View file

@ -60,6 +60,14 @@ clients = {
'xdg-shell',
],
},
'keyboard-shortcuts-inhibit': {
'src': 'keyboard-shortcuts-inhibit.c',
'dep': [wayland_cursor, wlroots],
'proto': [
'keyboard-shortcuts-inhibit-unstable-v1',
'xdg-shell',
],
},
'layer-shell': {
'src': 'layer-shell.c',
'dep': [wayland_cursor, wlroots],