mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-26 01:40:12 -05:00
input: reset mouse state on pointer leave
This commit is contained in:
parent
4ee5a81d1a
commit
1091d1c078
1 changed files with 3 additions and 0 deletions
3
input.c
3
input.c
|
|
@ -734,6 +734,9 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
|
||||||
wayl->pointer.xcursor = NULL;
|
wayl->pointer.xcursor = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset mouse state */
|
||||||
|
memset(&wayl->mouse, 0, sizeof(wayl->mouse));
|
||||||
|
|
||||||
wayl->mouse_focus = NULL;
|
wayl->mouse_focus = NULL;
|
||||||
if (old_moused == NULL) {
|
if (old_moused == NULL) {
|
||||||
LOG_WARN(
|
LOG_WARN(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue