[hammerhead] libinput_event_touch_get_x(tevent) returns wrong values
Describe your issue
What's the expected behaviour?
libinput_event_touch_get_x()
returning correct values.
What's the current behaviour?
libinput_event_touch_get_x(tevent)
returns wrong values in lisgd
. Screen width and height are recognized correctly (1080x1920). But the touch coordinates are way too small: 0 <= x <= 60, 0 <= y <= 110 (roughly).
As a workaround, I multiply the return values of libinput_event_touch_get_x(tevent)
and libinput_event_touch_get_y(tevent)
by 17.4 (in the source code). But I suppose, I have to set a parameter somewhere?!
EDIT:
Meanwhile I found out that libinput_event_touch_get_x(tevent)
returns values in millimeters. Then this one is correct and my problem is that DisplayWidth
returns the screen width in pixels. I guess, lisgd
should use DisplayWidthMM
(returning millimeters), instead.
How to reproduce your issue?
lisgd
doesn't work at all. But it's not obvious, why. I have added some debugging output and compiled it again. Then I noticed that the touch coordinates don't match the screen resolution.
What device are you using?
lg-hammerhead (Nexus 5)
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v21.03
-
v20.05
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo
Other
-
No environment -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
I don't know. Installed 3 days ago.