mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 00:00:28 +01:00
touchpad: check for the fake_resolution boolean instead of a res value
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
1884ee186e
commit
9761db6720
1 changed files with 2 additions and 2 deletions
|
|
@ -513,7 +513,7 @@ tp_init_softbuttons(struct tp_dispatch *tp,
|
|||
|
||||
/* button height: 10mm or 15% of the touchpad height,
|
||||
whichever is smaller */
|
||||
if (yres > 1 && (height * 0.15/yres) > 10) {
|
||||
if (!device->abs.fake_resolution && (height * 0.15/yres) > 10) {
|
||||
tp->buttons.bottom_area.top_edge =
|
||||
absinfo_y->maximum - 10 * yres;
|
||||
} else {
|
||||
|
|
@ -550,7 +550,7 @@ tp_init_top_softbuttons(struct tp_dispatch *tp,
|
|||
double topsize_mm = 10 * topbutton_size_mult;
|
||||
double topsize_pct = .15 * topbutton_size_mult;
|
||||
|
||||
if (yres > 1) {
|
||||
if (!device->abs.fake_resolution) {
|
||||
tp->buttons.top_area.bottom_edge =
|
||||
yoffset + topsize_mm * yres;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue