Bug 339482 - Task manager does not react to touchscreen clicks
Summary: Task manager does not react to touchscreen clicks
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
: 345777 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-28 18:10 UTC by Antonio Rojas
Modified: 2015-04-10 14:20 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.3
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Rojas 2014-09-28 18:10:52 UTC
Switching tasks with a touchscreen does not work, clicks on the task manager seem to be ignored. Other plasmoids in the panel openand work correctly when clicked.

Reproducible: Always
Comment 1 Eike Hein 2014-09-28 18:25:12 UTC
Kai, you had some sort of means to test touchscreen stuff, iirc? Can you reproduce?
Comment 2 Kai Uwe Broulik 2014-09-28 19:13:56 UTC
I just tried: I can both maximize and minimize applications (tap) as well as re-arrange them (d'n'd)

Note that prior to Qt 5.3.2 there are some issues with detection and handling of touchscreen devices and inputs. Kubuntu unfortunately ships 5.3.0 which renders my touchscreen useless but I verified that in 5.3.2 everything works as expected.
Comment 3 Antonio Rojas 2014-09-28 19:19:19 UTC
Using Qt 5.3.2 here
Comment 4 Kai Uwe Broulik 2014-09-28 19:32:50 UTC
Interesting. Maybe MouseEventListener doesn't cope with TouchEvents properly or filters out bogus duplicate events. :/
Comment 5 Marco Martin 2014-10-01 09:03:28 UTC
MouseEventListener takes mouse events.. tough touchscreen events should generate *both* a mouseevent and a touchevent
Comment 6 Kai Uwe Broulik 2014-10-27 19:19:01 UTC
For some reason for touch events the Task MEL gets events from all kinds of items (SVGItem and what not) confusing it and the onReleased event never arrives. With clicking it gets the proper event. 

The mouse release event is emitted by mouseReleaseEvent whereas the touch release event is emitted by childMouseEventFilter and that one does not properly make it through. It is emitted but for some reason does not end up triggering the onReleased handler in Task. I tried to reproduce the item with a minimalist qml example but didn't succeed. Removing the other MEL (for mouse wheel) and DropArea doesn't help either.
Comment 7 Eike Hein 2015-02-02 19:06:00 UTC
Kai, is this still an issue now?
Comment 8 loic.grobol 2015-02-24 10:19:49 UTC
This is still present as of plasmashell 5.2.1 (Kubuntu CI daily stable). The touchscreen works everywhere else (it moves the cursor *and* clicks) but it doesn't click on task managers (either the standard and icon-only task managers). It does however click on the task manager popups, so I can switch tasks this way : tap on application icon in task manager, the cursor moves, wait for 1-2 seconds to trigger the hover event, click on the popup.
Comment 9 Eike Hein 2015-04-01 22:14:41 UTC
*** Bug 345777 has been marked as a duplicate of this bug. ***
Comment 10 Weng Xuetian 2015-04-09 18:13:59 UTC
Git commit d21f348766a0a42ffa284aaa2c4ecc8f500efdc1 by Weng Xuetian.
Committed on 09/04/2015 at 18:11.
Pushed by xuetianweng into branch 'Plasma/5.3'.

Port task manager away from MouseEventListener

MouseArea in Qt5 provides same functionality, and it also handles
touch event better.
FIXED-IN: 5.3

M  +2    -3    applets/taskmanager/package/contents/ui/MouseHandler.qml
M  +6    -6    applets/taskmanager/package/contents/ui/Task.qml

http://commits.kde.org/plasma-desktop/d21f348766a0a42ffa284aaa2c4ecc8f500efdc1