From 7b18f8394e45aaf5a930e6ea08b6a4a58f5c7dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 24 Feb 2020 22:41:46 +0100 Subject: [PATCH] input: pointer-leave: reset 'active-surface' in terminal --- input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/input.c b/input.c index a84a80f8..7d1c6c04 100644 --- a/input.c +++ b/input.c @@ -684,8 +684,10 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer, LOG_WARN( "compositor sent pointer_leave event without a pointer_enter " "event: surface=%p", surface); - } else + } else { + old_moused->active_surface = TERM_SURF_NONE; term_xcursor_update(old_moused); + } } static void