Add swaylock protocol, add resource destructors

This prevents sway crashing if swaybg or swaybar dies.
This commit is contained in:
Drew DeVault 2015-12-03 08:35:22 -05:00
parent 2b38f298ff
commit 71afa38890
7 changed files with 68 additions and 1 deletions

18
protocols/swaylock.xml Normal file
View file

@ -0,0 +1,18 @@
<protocol name="lock">
<interface name="lock" version="1">
<description summary="create lock screen UIs">
The Weston desktop-shell protocol's locking functionality depends more
on the behavior of the compositor than of a screen locking client, so
another protocol is necessary.
</description>
<request name="set_lock_surface">
<arg name="output" type="object" interface="wl_output"/>
<arg name="surface" type="object" interface="wl_surface"/>
</request>
<request name="unlock"/>
</interface>
</protocol>