Bug 352937 - Plasmoids in system tray cannot handle left-click
Summary: Plasmoids in system tray cannot handle left-click
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (other bugs)
Version First Reported In: 5.4.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-20 09:47 UTC by Martin Kostolný
Modified: 2016-03-10 23:34 UTC (History)
1 user (show)

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


Attachments
Test widget for left-clicking (3.91 KB, application/zip)
2015-10-11 06:05 UTC, Martin Kostolný
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kostolný 2015-09-20 09:47:19 UTC
Any systray plasmoid (I mean e.g. battery, audio or custom ones) is never exposed to left-click. It is bound to have a FullRepresentation and left-click is eaten by the systray itself to show or hide the full representation of given plasmoid. So there is no possibility for a plasmoid in systray to act simply like e.g. keyboard layout switcher.

I think there should be a way for plasmoids to specify (e.g in metadata.desktop) if they are "full-blown" or "simple".

Reproducible: Always

Steps to Reproduce:
1. Extract attached org.kde.weatherWidgetTest.zip archive to ~/.local/share/plasma/plasmoids
2. Copy ~/.local/share/plasma/plasmoids/org.kde.weatherWidgetTest/metadata.desktop to ~/.local/share/kservices5
3. Add "Weather Widget Test" plasmoid to panel and click on it -> should show text "clicked"
4. Check "Weather Widget Test" in systray plasmoid settings and apply

Actual Results:  
It will only be left-clickable in expanded part of plasmoid.

Expected Results:  
There should be a possibility to disable FullRepresentation for a plasmoid is systray so it is possible to let left-click event through systray to plasmoid itself to be handled there.

I've got Plasma 5.4.1, KF 5.13.

Original question in forums: https://forum.kde.org/viewtopic.php?f=64&t=127451&sid=1bfc22e18f577aa69fbe4bf1b041e088
Comment 1 Marco Martin 2015-10-07 14:40:11 UTC
yes, cicks are completely managed by the systray itself at the moment.
you talk about an attacment of an example plasmoid, should be attached in the bug report too
Comment 2 Martin Kostolný 2015-10-11 06:05:33 UTC
Created attachment 94946 [details]
Test widget for left-clicking
Comment 3 Martin Kostolný 2015-10-11 06:06:56 UTC
Sorry, I forgot to attach it.
Comment 4 Marco Martin 2016-03-09 11:59:42 UTC
Systemtray implementation is changed, this should be one of the problems fixed. (clicks are managed by plasmoids themselves now)
Comment 5 Martin Kostolný 2016-03-10 23:34:27 UTC
Cool, thanks! I'll test it as soon as possible.