[Differential] [Request, 212 lines] D2450: Add support for touch events in the Effect system

graesslin (Martin Gräßlin) noreply at phabricator.kde.org
Mon Aug 15 13:53:37 UTC 2016


graesslin created this revision.
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added subscribers: kwin, plasma-devel.
Restricted Application added projects: Plasma on Wayland, KWin.

REVISION SUMMARY
  The Effect class is extended by three new virtual methods:
  
  - touchDown
  - touchMotion
  - touchUp
  
  The methods return a boolean value so that the events can be filtered
  out. E.g. an effect which has also a mouse grab installed wants to
  filter out all events, other effects don't need the events exclusively.
  
  This is a difference to how e.g. keyboard and pointer events are handled.
  But is more close to how KWin's internal input event passing works and
  makes it easier to get touch event: one does not explicitly has to grab
  the events. It's also closer to Wayland where all input events are
  available.
  
  As a first example the Present Windows effect is adjusted and allows to
  activate windows through the touch screen. As much code as possible is
  shared with pointer input.

REPOSITORY
  rKWIN KWin

BRANCH
  effects-touch

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

AFFECTED FILES
  effects.cpp
  effects.h
  effects/presentwindows/presentwindows.cpp
  effects/presentwindows/presentwindows.h
  input.cpp
  libkwineffects/kwineffects.cpp
  libkwineffects/kwineffects.h

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

To: graesslin, #kwin, #plasma_on_wayland
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/20160815/5671a963/attachment.html>


More information about the Plasma-devel mailing list