Fix launching by touchscreen tap

Authored by hein on Feb 14 2018, 3:48 PM.

Description

Fix launching by touchscreen tap

Summary:
The mouse handling code relied on onPositionChanged to do setup work
prior to onPressed. This is never guaranteed, but it's is likely to
happen when using the mouse (since the pointer is usually moved from
a panel icon to a delegate elsewhere on screen). In a touchscreen
scenario, these odds reverse.

The lesson to take away: Never assume onPositionChanged has run
before onPressed.

BUG:366527

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D10513

Details

Committed
heinFeb 14 2018, 3:51 PM
Differential Revision
D10513: Fix launching by touchscreen tap
Parents
R119:840694cc5bbe: Fix window pin not showing
Branches
Unknown
Tags
Unknown