mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-15 06:59:43 -05:00
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:
parent
48a89179a3
commit
869af1cfbb
2 changed files with 38 additions and 2 deletions
|
|
@ -40,6 +40,10 @@ struct wlr_session_lock_v1 {
|
|||
} events;
|
||||
|
||||
void *data;
|
||||
|
||||
// private state
|
||||
|
||||
bool locked_sent;
|
||||
};
|
||||
|
||||
struct wlr_session_lock_surface_v1_state {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue