mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
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:
parent
471b873de3
commit
208e6da3c3
2 changed files with 271 additions and 0 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue