From bc4350c976f238bc945ad02cfddb0b186de207ed Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Fri, 29 Apr 2022 21:55:04 +0300 Subject: [PATCH] backend/wayland: reset active pointer on destroy --- backend/wayland/pointer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/wayland/pointer.c b/backend/wayland/pointer.c index 0dc5efa94..db31f1abb 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);