mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-15 18:08:09 +02:00
tablet: don't set a pressure offset of 0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Jason Gerecke <jason.gerecke@wacom.com>
This commit is contained in:
parent
1a99977ca0
commit
3c5483ac16
1 changed files with 3 additions and 0 deletions
|
|
@ -1047,6 +1047,9 @@ detect_pressure_offset(struct tablet_dispatch *tablet,
|
|||
return;
|
||||
}
|
||||
|
||||
if (offset == 0)
|
||||
return;
|
||||
|
||||
/* we only set a pressure offset on proximity in */
|
||||
if (!tablet_has_status(tablet, TABLET_TOOL_ENTERING_PROXIMITY))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue