aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/input.c b/input.c
index 9f57307b..6a2bd0bf 100644
--- a/input.c
+++ b/input.c
@@ -734,6 +734,9 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
wayl->pointer.xcursor = NULL;
}
+ /* Reset mouse state */
+ memset(&wayl->mouse, 0, sizeof(wayl->mouse));
+
wayl->mouse_focus = NULL;
if (old_moused == NULL) {
LOG_WARN(