Bug 393682 - When running Wayland sessions with mouse in left hand mode, XWayland windows receive inverted button events
Summary: When running Wayland sessions with mouse in left hand mode, XWayland windows ...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 5.12.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-30 14:31 UTC by Frederik Gladhorn
Modified: 2018-05-06 18:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Gladhorn 2018-04-30 14:31:15 UTC
When running a wayland session, left handed mouse mode works for wayland windows. But running e.g. Firefox in a regular xwayland window, the mouse buttons are inverted (left/right click).

Clicking the physical right button should trigger a "left click" but results in a "right click".
Comment 1 Frederik Gladhorn 2018-04-30 14:36:52 UTC
Actually it seems like qt 4 applications are not effected, but visual studio code and firefox get the mouse buttons inverted.
Comment 2 Martin Flöser 2018-04-30 17:27:38 UTC
Sorry not much KWin can do about that. KWin does not do anything special for left handed. It just informs libinput to use left handed mode and that reports buttons. KWin just forwards them.

If they work in some areas but not all, it cannot be in KWin. It looks to me like a bug in XWayland.
Comment 3 Patrick Silva 2018-05-06 17:24:23 UTC
The problem described here affects me on Arch Linux running plasma 5.12.5 and xwayland 1.19.6+13+gd0d1a694f-2. QT4 app (Clementine music player) is also affected.

My laptop also runs Arch Linux and obviously the same xwayland version but with Gnome 3.28.1 and I can not reproduce such problem under its Wayland session.

What do you think Martin?
Comment 4 Martin Flöser 2018-05-06 17:45:25 UTC
I have no idea. I could imagine gnome doing workarounds. Anyway this needs to be reported to xwayland.
Comment 5 Patrick Silva 2018-05-06 18:28:56 UTC
Reported
https://bugs.freedesktop.org/show_bug.cgi?id=106424