Select also raw button press/release in XInput2 based polling
ClosedPublic

Authored by graesslin on Aug 11 2016, 10:59 AM.

Details

Summary

The mouse polling is also used to detect mouse button press/release
events. This is used e.g. by the MouseClickEffect. The XInput2 filter
only selected for Raw Motion events which means mouse button events
are missed in case it's not combined with a motion.

This change makes the input filter also select for raw button press
and release events. To support this the X11EventFilter needed to
be adjusted to support multiple generic event types to filter for.

BUG: 366612
FIXED-IN: 5.7.4

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 5828.Aug 11 2016, 10:59 AM
graesslin retitled this revision from to Select also raw button press/release in XInput2 based polling.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma.
Restricted Application added a project: KWin. · View Herald TranscriptAug 11 2016, 10:59 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
broulik added inline comments.
x11eventfilter.h
40

const-ref

graesslin marked an inline comment as done.Aug 11 2016, 2:47 PM
graesslin updated this revision to Diff 5836.Aug 11 2016, 2:47 PM

const-ref

mart accepted this revision.Aug 15 2016, 1:50 PM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Aug 15 2016, 1:50 PM
This revision was automatically updated to reflect the committed changes.