kwin/plugins
Martin Gräßlin 9c5f972c6a Forward x11 raw pointer buttons to PointerInputRedirection
Summary:
The raw pointer button events intercepted in the XInput2 input filter
get sent through the Platform to the PointerInputRedirection. This
makes the PointerInputRedirection track the pointer button state and
emit the signals for button changed and axis changed.

These signals are used by the modifier-only shortcut detection to
determine whether the shortcut should trigger.

On X11 the "normal" input handling doesn't use the InputRedirection
and the emitted signals are not consumed by anything else. As
PointerInputRedirection is not inited the events are not forwarded
to the input filter, thus won't be processed by other parts and
won't interfere with the normal event processing on X11.

Given that it also doesn't matter that the input filter does not
apply the left-handed setting. The internal tracking will have a
wrong mouse button, but nothing is going to do decisions based on
the value of the pressed mouse button. For the moment all we are
interested in is that a button is pressed.

Test Plan:
Pressed meta, clicked, scrolled, released meta: launcher
did not open. Pressed meta, released meta: launcher opened

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D2506

BUG: 367730
2016-08-25 11:47:47 +02:00
..
idletime [wayland] Fix heap-use-after-free in idle time plugin 2016-02-02 12:00:12 +01:00
kdecorations Drop specifying the default debug areas 2016-06-28 11:37:22 +02:00
kglobalaccel [globalaccel] Ensure we don't call into deleted InputRedirection on shutdown 2015-10-05 14:47:15 +02:00
platforms Forward x11 raw pointer buttons to PointerInputRedirection 2016-08-25 11:47:47 +02:00
qpa [Wayland] Make it possible to have internal windows decorated 2016-08-08 14:00:32 +02:00
CMakeLists.txt Move clients/ to plugins/kdecorations/ 2016-04-15 15:21:03 +02:00