From bc4350c976f238bc945ad02cfddb0b186de207ed Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Fri, 29 Apr 2022 21:55:04 +0300 Subject: backend/wayland: reset active pointer on destroy --- backend/wayland/pointer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend') 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); -- cgit v1.2.3