mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Add swaylock protocol, add resource destructors
This prevents sway crashing if swaybg or swaybar dies.
This commit is contained in:
parent
2b38f298ff
commit
71afa38890
7 changed files with 68 additions and 1 deletions
18
protocols/swaylock.xml
Normal file
18
protocols/swaylock.xml
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue