Created attachment 126969 [details] screenshot Also reproducible on Neon unstable. STEPS TO REPRODUCE 1. check "Keep running in system tray when main window is closed" in elisa settings 2. minimize all windows 3. right-click on elisa's entry in task manager, choose "Close" OBSERVED RESULT elisa goes to systray and its hamburger menu opens in the upper left corner of the screen. See the attached screenshot. EXPECTED RESULT no menu should open when elisa is closed SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.18.3 KDE Frameworks Version: 5.68.0 Qt Version: 5.15.0 beta2
Thanks for the report. I can reproduce this and I had noticed this bug. I will work on it.
https://invent.kde.org/kde/elisa/-/merge_requests/110 is a candidate fix for this bug. I am no longer able to reproduce it with this merge request.
Git commit 59c67f5f45bb125c630188189b89c08211357357 by Matthieu Gallien. Committed on 23/03/2020 at 20:32. Pushed by mgallien into branch 'release/20.04'. fix handling of menu exported by system tray icon seems that reusing the menu exported for the global menu is a very bad idea using a menu as a child of the system tray icon seems to be the solution Related: bug 409010 M +2 -1 src/qml/PlatformIntegration.qml https://invent.kde.org/kde/elisa/commit/59c67f5f45bb125c630188189b89c08211357357
With the flatpak generated from master branch, the menu appears a short time and then disappear. I believe I will have to implement everything using KSNI class from KDE Frameworks.
So this is a Qt bug and I cannot reproduce it with the qt5.15 dev branch where as Qt 5.12.5 has the bug. I will try to identify a workaround for this but will not use KSNI for the stable branch (add a new dependency and lots of code).
https://invent.kde.org/kde/elisa/-/merge_requests/113 with a workaround that should avoid the menu showing when it should not.
Git commit 1e635e63fad214774ad036e8b92f0057dc40014b by Nate Graham, on behalf of Matthieu Gallien. Committed on 01/04/2020 at 15:44. Pushed by mgallien into branch 'release/20.04'. workaround not to have the system tray menu appear when it should not M +6 -0 src/qml/PlatformIntegration.qml https://invent.kde.org/kde/elisa/commit/1e635e63fad214774ad036e8b92f0057dc40014b