kwin/plugins/platforms/x11/standalone
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
..
CMakeLists.txt Move X11Cursor into the x11standalone platform plugin 2016-08-19 10:57:09 +02:00
edge.cpp Create screen edge through the Platform 2016-04-19 13:29:55 +02:00
edge.h Create screen edge through the Platform 2016-04-19 13:29:55 +02:00
glxbackend.cpp Remove the unredirect fullscreen windows functionality 2016-08-04 14:48:35 +02:00
glxbackend.h Move glxbackend to x11 standalone plugin 2016-04-15 07:46:02 +02:00
logging.cpp [plugins/platforms] Dedicated logging category for X11 standalone platform 2016-04-12 14:48:54 +02:00
logging.h [plugins/platforms] Dedicated logging category for X11 standalone platform 2016-04-12 14:48:54 +02:00
screens_xrandr.cpp
screens_xrandr.h
x11.json SVN_SILENT made messages (.desktop file) - always resolve ours 2016-04-21 10:02:53 +00:00
x11_platform.cpp Move X11Cursor into the x11standalone platform plugin 2016-08-19 10:57:09 +02:00
x11_platform.h Move X11Cursor into the x11standalone platform plugin 2016-08-19 10:57:09 +02:00
x11cursor.cpp Move X11Cursor into the x11standalone platform plugin 2016-08-19 10:57:09 +02:00
x11cursor.h Move X11Cursor into the x11standalone platform plugin 2016-08-19 10:57:09 +02:00
xinputintegration.cpp Forward x11 raw pointer buttons to PointerInputRedirection 2016-08-25 11:47:47 +02:00
xinputintegration.h Move X11Cursor into the x11standalone platform plugin 2016-08-19 10:57:09 +02:00