mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 23:10:07 +01:00
tablet: mark all axes as unchanged before the proximity out event
When the tablet goes out of proximity we provide the last-known axis status (which was sent in a previous axis event anyway), make sure the changed_axis bitfield is unset for all axes though. Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
52997faf45
commit
f3ac8d03fe
1 changed files with 1 additions and 1 deletions
|
|
@ -508,6 +508,7 @@ tablet_flush(struct tablet_dispatch *tablet,
|
|||
}
|
||||
|
||||
if (tablet_has_status(tablet, TABLET_TOOL_LEAVING_PROXIMITY)) {
|
||||
memset(tablet->changed_axes, 0, sizeof(tablet->changed_axes));
|
||||
tablet_notify_proximity(&device->base,
|
||||
time,
|
||||
tool,
|
||||
|
|
@ -517,7 +518,6 @@ tablet_flush(struct tablet_dispatch *tablet,
|
|||
|
||||
tablet_set_status(tablet, TABLET_TOOL_OUT_OF_PROXIMITY);
|
||||
tablet_unset_status(tablet, TABLET_TOOL_LEAVING_PROXIMITY);
|
||||
memset(tablet->changed_axes, 0, sizeof(tablet->changed_axes));
|
||||
|
||||
tablet_change_to_left_handed(device);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue