aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-04-29 21:55:04 +0300
committerKirill Primak <vyivel@eclair.cafe>2022-04-29 21:55:04 +0300
commitbc4350c976f238bc945ad02cfddb0b186de207ed (patch)
treeb5c1a10d5c0cd0cd69dbdada647b96ccd8f8a3fb /backend
parentec2af17674ade115e76c06cf5cde1d1e829460b3 (diff)
backend/wayland: reset active pointer on destroy
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/pointer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/wayland/pointer.c b/backend/wayland/pointer.c
index 0dc5efa9..db31f1ab 100644
--- a/backend/wayland/pointer.c
+++ b/backend/wayland/pointer.c
@@ -404,6 +404,9 @@ static void destroy_pointer(struct wlr_wl_pointer *pointer) {
if (pointer->output->cursor.pointer == pointer) {
pointer->output->cursor.pointer = NULL;
}
+ if (pointer->seat->active_pointer == pointer) {
+ pointer->seat->active_pointer = NULL;
+ }
wlr_pointer_finish(&pointer->wlr_pointer);
wl_list_remove(&pointer->output_destroy.link);