From 71afa388906bf29dcd937aa92b65a97c8b320f60 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 3 Dec 2015 08:35:22 -0500 Subject: Add swaylock protocol, add resource destructors This prevents sway crashing if swaybg or swaybar dies. --- protocols/CMakeLists.txt | 11 +++++++++++ protocols/libsway-protocols.a | Bin 0 -> 31798 bytes protocols/swaylock.xml | 18 ++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 protocols/libsway-protocols.a create mode 100644 protocols/swaylock.xml (limited to 'protocols') diff --git a/protocols/CMakeLists.txt b/protocols/CMakeLists.txt index 07becc36..d7516d0c 100644 --- a/protocols/CMakeLists.txt +++ b/protocols/CMakeLists.txt @@ -13,10 +13,21 @@ WAYLAND_ADD_PROTOCOL_SERVER(proto-server-desktop-shell desktop-shell ) +WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-swaylock + swaylock.xml + swaylock +) +WAYLAND_ADD_PROTOCOL_SERVER(proto-server-swaylock + swaylock.xml + swaylock +) + add_library(sway-protocols ${proto-client-xdg-shell} ${proto-client-desktop-shell} ${proto-server-desktop-shell} + ${proto-client-swaylock} + ${proto-server-swaylock} ) set(PROTOCOLS_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/protocols PARENT_SCOPE) diff --git a/protocols/libsway-protocols.a b/protocols/libsway-protocols.a new file mode 100644 index 00000000..284f46c2 Binary files /dev/null and b/protocols/libsway-protocols.a differ diff --git a/protocols/swaylock.xml b/protocols/swaylock.xml new file mode 100644 index 00000000..c7a102dd --- /dev/null +++ b/protocols/swaylock.xml @@ -0,0 +1,18 @@ + + + + + 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. + + + + + + + + + + + -- cgit v1.2.3-54-g00ecf