aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-12-21 17:52:48 +0100
committerIsaac Freund <mail@isaacfreund.com>2022-12-23 16:56:42 +0100
commit869af1cfbb3944d32d59a4c08ca439e7b5eaf6d2 (patch)
tree81b4249b47bd0e57031ae2443e51b06d343725f9 /include/wlr
parent48a89179a3383363accefdd8b1c3d15da602ff5f (diff)
session-lock: send more protocol errors
The invalid_destroy and invalid_unlock protocol errors aren't currently sent by wlroots and instead left up to the compositor. However, we can handle these as well without much additional complexity. This also adds a missing wl_resource_destroy() call if the lock is inert in lock_handle_unlock_and_destroy().
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_session_lock_v1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_session_lock_v1.h b/include/wlr/types/wlr_session_lock_v1.h
index 6ad18df7..b6eee1a3 100644
--- a/include/wlr/types/wlr_session_lock_v1.h
+++ b/include/wlr/types/wlr_session_lock_v1.h
@@ -40,6 +40,10 @@ struct wlr_session_lock_v1 {
} events;
void *data;
+
+ // private state
+
+ bool locked_sent;
};
struct wlr_session_lock_surface_v1_state {