D5106: Add support for activating screenedges through touch swipe gestures
Martin Gräßlin
noreply at phabricator.kde.org
Sun Mar 19 12:46:07 UTC 2017
graesslin created this revision.
Restricted Application added a subscriber: plasma-devel.
Restricted Application added a project: Plasma on Wayland.
REVISION SUMMARY
Each Edge creates a SwipeGesture for touch activation. The swipe needs to
be a single finger starting from the edge into the screen for at least
20 %. The SwipeGesture and GestureRecognizer is extended to support the
use cases of the touch screen edge swipe.
New features supported by the gesture system are:
- minimum and maximum position
- a minimum delta for the swipe
- progress signal based on the minimum delta
- starting a swipe with a start point
The Edge has the progress signal connected to its approach signal, thus
visual feedback is provided through the screen edge effect.
The screen edge system supports touch only for the edges (corners are
too difficult to activate on touch screens). At the moment the following
features are supported:
- screen edge show/raise of windows (e.g. auto hidden panels)
- trigger the configured action
- trigger the configured callback function (e.g. script)
In future it might make sense to add a touch specific configuration
action to support different actions for screen edges activated by mouse
and touch.
BUG: 370323
TEST PLAN
configured a screen edge and triggered through touch,
added an auto-hiding panel and triggered through touch
BRANCH
screenedge-touch
REVISION DETAIL
https://phabricator.kde.org/D5106
AFFECTED FILES
autotests/CMakeLists.txt
autotests/test_gestures.cpp
gestures.cpp
gestures.h
input.cpp
screenedge.cpp
screenedge.h
To: graesslin, #kwin, #plasma_on_wayland
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, eliasp, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170319/89bdb18c/attachment.html>
More information about the Plasma-devel
mailing list