Bug 415142 - Three dot menu stays open
Summary: Three dot menu stays open
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: plasmoid (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 419635 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-12-13 15:45 UTC by Squeaky Pancakes
Modified: 2020-04-08 07:20 UTC (History)
4 users (show)

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


Attachments
Screenshot (34.98 KB, image/png)
2019-12-13 15:45 UTC, Squeaky Pancakes
Details
kdeconnect menu demo (1.01 MB, video/x-matroska)
2020-01-23 08:48 UTC, Richard Ullger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Squeaky Pancakes 2019-12-13 15:45:25 UTC
Created attachment 124470 [details]
Screenshot

SUMMARY Three dot menu will stay open unless an item is clicked on.


STEPS TO REPRODUCE
1. open the three dot menu for a device in the menu
2. change to a different plasmoid
3. 

OBSERVED RESULT
The three dot menu will stay open on top of all systemtray plasmoids.

EXPECTED RESULT
Should close when clicking away from the menu.

Operating System: Artix Linux 
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2
Kernel Version: 4.19.88-1-lts
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-3210M CPU @ 2.50GHz
Memory: 7.7 GiB of RAM


ADDITIONAL INFORMATION
Comment 1 Filip Fila 2020-01-22 23:29:14 UTC
I can reproduce this. There's 4 problems that I can see:

- the menu doesn't close when entering a different plasmoid
- the menu doesn't close when clicking anywhere in the plasmoid
(I was able to get it working by messing with the size of the plasmoid)
- the menu doesn't close when clicking on the overflow menu icon
- when resizing the plasmoid hovering over menu items is broken
(can be unfrozen by overscrolling the contents of the plasmoid)

[IMO the overscroll should patched out though, other plasmoids don't do that and we've been moving away from it on the desktop.]
Comment 2 Richard Ullger 2020-01-23 08:48:55 UTC
Created attachment 125317 [details]
kdeconnect menu demo

Confirmed in Arch Linux kde-unstable repo plasma v5.17.90

I can only remove the menu by selecting an option from it.

Operating System: Arch Linux 
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0
Kernel Version: 5.4.13-arch1-1
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5 CPU M 430 @ 2.27GHz
Memory: 7.5 GiB of RAM
Comment 3 gvgeo 2020-02-24 15:34:48 UTC
Git commit 875cf16a4049fc34b373e36a48efd2a2948d3078 by George Vogiatzis.
Committed on 21/02/2020 at 09:42.
Pushed by apol into branch 'master'.

[Plasmoid]Make device menu use PC ContextMenu

Summary:
Change the three dotted menu to use PlasmaComponents ContextMenu.
This prevents menu from staying open on other system tray's applets.
Wayland still has that issue, happens in other menus too.

And change menu icon into a hamburger menu.

Test Plan:
Before:
Open the menu, and then open an other applet. Menu will stay open on
the left. Even if change windows and open the system tray, will still
be there.
After:
Use X11. By clicking, for example volume applet, menu will minimize.
Will need to click again to open the applet.

M  +12   -13   plasmoid/package/contents/ui/DeviceDelegate.qml

https://invent.kde.org/kde/kdeconnect-kde/commit/875cf16a4049fc34b373e36a48efd2a2948d3078
Comment 4 Kai Uwe Broulik 2020-04-08 07:20:22 UTC
*** Bug 419635 has been marked as a duplicate of this bug. ***