Bug 374995 - Global menu applet is not "cleared" after window is closed
Summary: Global menu applet is not "cleared" after window is closed
Status: RESOLVED DUPLICATE of bug 444587
Alias: None
Product: plasmashell
Classification: Plasma
Component: Global Menu (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-13 09:43 UTC by Federico
Modified: 2022-09-22 22:48 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
You can see that no windows are present, but global menu is still there (1.06 MB, image/png)
2017-01-13 09:43 UTC, Federico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico 2017-01-13 09:43:51 UTC
Created attachment 103391 [details]
You can see that no windows are present, but global menu is still there

As title said, sometimes global menu is not cleared after a window, eg konsole, is closed.

In attachment, screenshot.
Comment 1 Kai Uwe Broulik 2017-01-13 13:48:01 UTC
Confirmed. When the active window changes and it moves to a window with skip task bar or a utility window we'll abort and don't notice that the menu is gone.
Comment 2 David Edmundson 2017-01-17 20:56:33 UTC
Git commit 162543b7eb8918aa0430a74ab2688068262ac711 by David Edmundson.
Committed on 17/01/2017 at 20:54.
Pushed by davidedmundson into branch 'Plasma/5.9'.

Hide menu if the menu disappears off DBus

Summary:
This can happen without a focus change if focus is changed to a window
that doesn't claim the menu, for example the desktop.

It could also happen if an application does something weird, like
release
its service name.

Test Plan:
Ran "sleep 10; killall kate"
Then selected kate then the desktop
Kate remained showing for 10 seconds then closed

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

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

M  +14   -1    applets/appmenu/plugin/appmenumodel.cpp

https://commits.kde.org/plasma-workspace/162543b7eb8918aa0430a74ab2688068262ac711
Comment 3 Michail Vourlakos 2018-11-10 16:49:30 UTC
this isnt fixed in my system... If I close e.g. "kwrite" then even though the app has closed the menu is still shown.

I dont know if the fact that there are minimized some other windows takes responsibility for this.

If my other patches are accepted I will add this case in order for when the currentwindow is closing the menu becomes hidden.
Comment 4 Justin Zobel 2020-11-30 01:22:41 UTC
(In reply to Michail Vourlakos from comment #3)
> this isnt fixed in my system... If I close e.g. "kwrite" then even though
> the app has closed the menu is still shown.
> 
> I dont know if the fact that there are minimized some other windows takes
> responsibility for this.
> 
> If my other patches are accepted I will add this case in order for when the
> currentwindow is closing the menu becomes hidden.

I believe when you close a window, if you have others even though minimised will gain focus. If you click on Help > About you could determine which app now has focus.
Comment 5 ratijas 2022-09-22 22:48:21 UTC

*** This bug has been marked as a duplicate of bug 444587 ***