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().
This commit is contained in:
Isaac Freund 2022-12-21 17:52:48 +01:00
parent 48a89179a3
commit 869af1cfbb
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 38 additions and 2 deletions

View file

@ -40,6 +40,10 @@ struct wlr_session_lock_v1 {
} events;
void *data;
// private state
bool locked_sent;
};
struct wlr_session_lock_surface_v1_state {