[Differential] [Request, 263 lines] D3863: Introduce an InputEventSpy for processing input events

graesslin (Martin Gräßlin) noreply at phabricator.kde.org
Thu Dec 29 18:05:37 UTC 2016


graesslin created this revision.
graesslin added reviewers: KWin, Plasma.
Restricted Application added a project: KWin.
Restricted Application added subscribers: kwin, plasma-devel.

REVISION SUMMARY
  So far KWin's input event processing is mostly based on
  InputEventFilters. A filter can - as the name suggest - filter out an
  input event from further processing. Our code shows that this is not
  sufficient for all input event processing.
  
  We have several areas inside KWin where we need to have access to all
  input events, where the processing needs to happen on all events and
  filtering is not allowed. This results in sub-optimal code which has
  classes which know too much and do too much.
  
  Examples:
  
  - key-repeat handling done in KeyboardInputRedirection
  - Layout change OSD in Xkb
  - modifier only shortcuts in Xkb
  - emitting signals for Cursor class in KeyboardInputRedirection
  
  Also there are misuses of the InputEventFilters and internal API
  
  - DebugConsole keyboard state (uses wrong information)
  - DebugConsole input events tab (uses Filter, should be a spy)
  
  This change introduces the API needed to fix these problems. It
  introduces an InputEventSpy which is modelled after the InputEventFilter
  with the difference that it has only void messages and uses the KWin
  introduced event classes.
  
  The spies are always processed prior to the filters, thus we know it can
  have all events.

REPOSITORY
  R108 KWin

BRANCH
  input-event-spy

REVISION DETAIL
  https://phabricator.kde.org/D3863

AFFECTED FILES
  input.cpp
  input.h
  input_event_spy.cpp
  input_event_spy.h
  keyboard_input.cpp
  pointer_input.cpp
  touch_input.cpp

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: graesslin, #kwin, #plasma
Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161229/58adeb93/attachment.html>


More information about the Plasma-devel mailing list