Bug 395853 - Global menu doesnt empty itself after window is minimized
Summary: Global menu doesnt empty itself after window is minimized
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Global Menu (show other bugs)
Version: 5.13.1
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 391334 398360 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-25 14:33 UTC by Michail Vourlakos
Modified: 2018-11-24 20:00 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.15.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michail Vourlakos 2018-06-25 14:33:12 UTC
When an app is minimized and it was the last app shown menu still shows its entries.

Steps to reproduce:

1. Open dolphin window and close all other windows
2. Minimize dolphin window
3. even though dolphin isnt the active window and it isnt shown, its menu is still shown in the global menu
Comment 1 Alexander Mentyu 2018-10-10 09:52:58 UTC
Panel global menu applet?
Possible solution would be display some right click desktop menu options
Comment 2 Alexander Mentyu 2018-10-10 12:21:47 UTC
*** Bug 398360 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Mentyu 2018-10-10 12:22:11 UTC
Hide/show menu behavior is inconsistent - clicking on desktop from Konsole always don't hides it's menu, clicking on desktop from Kate sometimes empties the menu widget - leaving only empty square
 
Operating System: Netrunner Rolling
KDE Plasma Version: 5.13.5
Qt Version: 5.11.2
KDE Frameworks Version: 5.50.0
Comment 4 Michail Vourlakos 2018-11-06 11:59:39 UTC
*** Bug 391334 has been marked as a duplicate of this bug. ***
Comment 5 Michail Vourlakos 2018-11-06 12:39:08 UTC
I think that global menu model (https://github.com/KDE/plasma-workspace/blob/master/applets/appmenu/plugin/appmenumodel.cpp) should support minimize awareness

@kbroulik what is your opinion, should I go for it?
Comment 6 Michail Vourlakos 2018-11-22 18:37:20 UTC
Git commit 3fa1cc6b77161a2bcc50647fa67311355f8e7534 by Michail Vourlakos.
Committed on 22/11/2018 at 18:37.
Pushed by mvourlakos into branch 'master'.

mage global menu screen aware

Summary:
--a new screenGeometry property is added in the
AppMenuModel in order to be used for filtering
windows based on their geometry.
Related: bug 384895

Test Plan:
--validate that when moving a window between different screens the global menu applet is updated accordingly
--checkout that nothing has broke because of this new behavior

Reviewers: #plasma, broulik, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: mart, davidedmundson, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D16768

M  +2    -1    applets/appmenu/package/contents/ui/main.qml
M  +54   -2    applets/appmenu/plugin/appmenumodel.cpp
M  +19   -0    applets/appmenu/plugin/appmenumodel.h

https://commits.kde.org/plasma-workspace/3fa1cc6b77161a2bcc50647fa67311355f8e7534