Bug 376677 - Mouse right-click ignored on apps icons
Summary: Mouse right-click ignored on apps icons
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Icons-only Task Manager (show other bugs)
Version: 5.8.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-19 15:56 UTC by davi87
Modified: 2017-09-05 19:46 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davi87 2017-02-19 15:56:39 UTC
Using Icons-only Task Manager I can't right-click on any of the icons it shows. If I try to click outside an icon graphic, I'm able to access the popup menu options like:
- Icons-only Task Manager Settings...
- Alternatives...
- Panel Options
Also, as I have "Show tooltip" enabled, I'm able to see the task(s) window(s) normally and this is where the right-click don't work.
Don't know in which plasma version this started happening nor how to reproduce this behavior (in case it's not a general issue).
Comment 1 Kai Uwe Broulik 2017-02-19 16:03:05 UTC
Can you start plasmashell and see if there's any error messages or warnings when you right click on a window?
Comment 2 Kai Uwe Broulik 2017-02-19 16:03:17 UTC
start plasmashell from console, that is.
Comment 3 davi87 2017-02-19 16:07:58 UTC
Well, after a SIGTERM to its PID, it fails to start with this output:

$ plasmashell 
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, tried ("/home/davi/.local/share", "/usr/share/plasma", "/usr/local/share", "/usr/share", "/var/lib/snapd/desktop")                                                                                                                 
org.kde.kcoreaddons: Expected JSON property "X-Plasma-ContainmentCategories" to be a single string. but it is a stringlist                                              
org.kde.kcoreaddons: Expected JSON property "X-Plasma-ContainmentCategories" to be a single string. but it is a stringlist
org.kde.kcoreaddons: Expected JSON property "X-Plasma-ContainmentCategories" to be a single string. but it is a stringlist
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, tried ("/home/davi/.local/share", "/usr/share/plasma", "/usr/local/share", "/usr/share", "/var/lib/snapd/desktop")
KCrash: Attempting to start /usr/bin/plasmashell from kdeinit
sock_file=/run/user/1000/kdeinit5__0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasmashell path = /usr/bin pid = 8754
KCrash: Arguments: /usr/bin/plasmashell 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 18 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...

[1]+  Stopped                 plasmashell
Comment 4 davi87 2017-02-19 19:34:20 UTC
OK, I found the right way to restart plasmashell (kquitapp5 plasmashell && kstart5 plasmashell)

There is an error, indeed

When I right-click the icon I get 

   file:///crypto/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ContextMenu.qml:501: TypeError: Cannot read property 'LauncherUrlWithoutIcon' of undefined
   file:///crypto/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ContextMenu.qml:64: TypeError: Cannot read property 'LauncherUrlWithoutIcon' of undefined

After that, hovering over the icons give me

[google-chrome]
   QXcbConnection: XCB error: 2 (BadValue), sequence: 9880, resource id: 119537670, major code: 142 (Unknown), minor code: 3
   QXcbConnection: XCB error: 2 (BadValue), sequence: 9881, resource id: 119537670, major code: 142 (Unknown), minor code: 3

[konsole]
   QXcbConnection: XCB error: 2 (BadValue), sequence: 10276, resource id: 113246209, major code: 142 (Unknown), minor code: 3
Comment 5 Eike Hein 2017-02-20 09:59:21 UTC
I'm confused by this:

> Also, as I have "Show tooltip" enabled, I'm able to see the task(s) window(s) normally and this is where the right-click don't work.

Are you saying right-click doesn't work on the icons, or it only doesn't work on the window previews in the tooltips?
Comment 6 davi87 2017-02-20 11:48:38 UTC
The error messages are all related to the icons, not the preview. 
My mistake to include this information. The same area that shows the preview is where the right-clock doesn't work.
Comment 7 Eike Hein 2017-02-20 12:07:55 UTC
5.8.x doesn't have a context menu for the preview thumbnails. That's a new feature in the redesigned tooltips in 5.9.x.
Comment 8 davi87 2017-02-20 13:17:03 UTC
The right-click is issue in the actual icon, not in the preview (just for clarification). Here is an image of the mouse positioning: https://drive.google.com/open?id=0BxmHfcacsGs_cHhhbEQxcXhCWjA
It used  to popup the application's menu whenever I right-clicked an icon and that is gone now...
How would a new feature affect an old one?
Comment 9 Eike Hein 2017-02-21 09:15:29 UTC
I misunderstood you, you told me two times it was on the preview instead of the icon.
Comment 10 davi87 2017-02-21 12:34:36 UTC
Not an issue in KDE 5.9.2
As it got updated, I can't verify a possible solution to this bug...
Comment 11 Marco Martin 2017-03-06 16:46:59 UTC
i tried to use the task manager from 5.8 on top of master, and the problem is not reproducible...
some new api in libtm that hasn't been backported while something using it on the applet side has been backported?
Comment 12 Eike Hein 2017-03-06 21:03:05 UTC
Something like that I think, iirc I couldn't reproduce it either but I'll have another try tomorrow.
Comment 13 Nate Graham 2017-09-05 19:46:41 UTC
Sounds like something fixed this.