Bug 396456

Summary: When changing orientation screen, touches are wrongly interpret by position of touch.
Product: [Plasma] kwin Reporter: Marcin Migacz <migacz85>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: bugseforuns, nate
Priority: NOR    
Version First Reported In: 5.13.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marcin Migacz 2018-07-12 22:41:55 UTC
Hi guys,

after going to: 
 system settings -> displays -> orientation ->
and changing it to: 
 clockwise, anticlockwise or upside down

Display is rotating and that is great. 
Touches are interpreted like screen is in original position.

It look like code rules responsible for interpretation of touches
are still the same as it was before changing orientation.
Comment 1 Nate Graham 2018-07-13 21:05:47 UTC
Martin, is this in KWin?
Comment 2 Martin Flöser 2018-07-14 05:50:46 UTC
X11 or Wayland?
Comment 3 Marcin Migacz 2018-07-14 09:55:27 UTC
I run this command 
echo $XDG_SESSION_TYPE
and get this result: 
x11

However i found the way of fixing that 
and wrote simple script that solves the problem and even
give extra feature of autorotation:

https://gist.github.com/Migacz85/3f544933ce5add438555ba7cd33f0413

with simple installation of onboard keyboard I get fully functional
autorotating desktop on my laptop hp x360 13-s150sa with virtual keyboard. 
it would be great to port this features to next versions of kde manjaro.
Comment 4 Patrick Silva 2018-09-15 15:22:52 UTC
I can confirm such problem on neon dev unstable under X11.
Comment 5 Martin Flöser 2018-09-15 15:46:26 UTC
Out of scope for KWin on X11. The Arch wiki contains good instructions. This needs to be implemented in the display server (xorg) and naturally it's implemented correctly on Wayland.