summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-12-20 17:25:44 +0100
committerSimon Ser <contact@emersion.fr>2022-02-02 15:30:45 +0100
commit1d1c75b6316d21933069a9d201f966d84099f6ca (patch)
tree81297a3e8934a5f714e75bc56c18d7dee5be6cb8 /include
parent978ce498940ad6739b30c12c8a24ade11a423b5f (diff)
Add support for ext-session-lock-v1
This is a new protocol to lock the session [1]. It should be more reliable than layer-shell + input-inhibitor. [1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/131
Diffstat (limited to 'include')
-rw-r--r--include/swaylock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/swaylock.h b/include/swaylock.h
index 3993fe5..30f9117 100644
--- a/include/swaylock.h
+++ b/include/swaylock.h
@@ -89,6 +89,8 @@ struct swaylock_state {
int failed_attempts;
bool run_display;
struct zxdg_output_manager_v1 *zxdg_output_manager;
+ struct ext_session_lock_manager_v1 *ext_session_lock_manager_v1;
+ struct ext_session_lock_v1 *ext_session_lock_v1;
};
struct swaylock_surface {
@@ -101,6 +103,7 @@ struct swaylock_surface {
struct wl_surface *child; // surface made into subsurface
struct wl_subsurface *subsurface;
struct zwlr_layer_surface_v1 *layer_surface;
+ struct ext_session_lock_surface_v1 *ext_session_lock_surface_v1;
struct pool_buffer buffers[2];
struct pool_buffer indicator_buffers[2];
struct pool_buffer *current_buffer;