aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-29 11:08:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-29 11:08:59 +0000
commit1091d1c0785cd07f2cb96fe88b9ccd0d331ede01 (patch)
tree95c7257ea41cfab5843b2077776584068344517f /input.c
parentinput: toggle maximized state when double-clicking the title bar (diff)
input: reset mouse state on pointer leave
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(