Touch events do not respect screen rotation on devices using simpledrm
What problem did you encounter
If Phosh runs on top of SimpleDRM (firmware framebuffer) on a device that has a physical touchscreen, touching the screen does not properly translate coordinates.
If Phosh runs on top of X11 on a device that has a physical touchscreen, touching the phosh window does not properly translate coordinates. (Fixed via !534 (merged))
How to reproduce
- Run Phosh on top of SimpleDRM or with WLR_BACKENDS=x11 on a device with a touchscreen
- Click the "Portrait/Landscape" switch on the top menu
- Tap on a touchscreen anywhere inside the Phosh
What is the (wrong) result?
Taps on the Phosh window no longer activate what is actually tapped, coordinates are not translated. For example, to pull the top menu after switching orientation, you have to pull from the window edge that was top, not from the edge that became top.
What is the expected behaviour?
Taps are handled correctly and activate UI elements that are being rendered under the finger.
Edited by Guido Günther