Replaced InputEventFilter by InputEventSpy
ClosedPublic

Authored by floeser on Dec 30 2016, 6:51 PM.

Details

Summary

As explained in 84e33081499fd0049fbe7908dd7b66b2eefd34b1
the DebugConsole should use an InputEventSpy instead of an InputEventFilter.

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.
floeser updated this revision to Diff 9512.Dec 30 2016, 6:51 PM
floeser retitled this revision from to Replaced InputEventFilter by InputEventSpy.
floeser updated this object.
floeser edited the test plan for this revision. (Show Details)
floeser added a reviewer: kwin.
Restricted Application added a project: KWin. · View Herald TranscriptDec 30 2016, 6:51 PM
graesslin added inline comments.
debug_console.cpp
188–191

you could also drop this cast as it's now a MouseEvent in all cases. So just replace it by:

#if HAVE_INPUT
    text.append(event->device());
#endif

Similar code should also be in MouseButtonPress/Release switch, and the methods keyEvent and wheelEvent

floeser updated this revision to Diff 9587.Jan 1 2017, 4:50 PM

Removed casts in MouseEvents as request in code review.

graesslin accepted this revision.Jan 1 2017, 5:03 PM
graesslin added a reviewer: graesslin.
This revision is now accepted and ready to land.Jan 1 2017, 5:03 PM
This revision was automatically updated to reflect the committed changes.