Bug 398361

Summary: Moving across menues sometimes breaks (e.g., when an empty menu is encountered)
Product: [Plasma] plasmashell Reporter: avlas <jsardid>
Component: Global Menu widgetAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: normal CC: me, nate, notuxius, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.13.5   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description avlas 2018-09-07 15:10:24 UTC
This happens only in the top menubar. Tested in Kate's "Bookmarks" and Konqueror's "Tools" menues.
Comment 1 Alexander Mentyu 2018-10-10 12:24:43 UTC
Also global titlemenu often hides after hover over it's Bookmarks section in Kate
 
Operating System: Netrunner Rolling
KDE Plasma Version: 5.13.5
Qt Version: 5.11.2
KDE Frameworks Version: 5.50.0
Comment 2 ratijas 2022-09-20 23:40:07 UTC
Is this issue still reproducible? I don't see any empty menus or submenus in Kate.  I do get an empty unnamed top-level menu at index 0 in Sublime Text & Sublime Merge, but it doesn't seem to cause any problems.
Comment 3 avlas 2022-09-23 06:37:20 UTC
(In reply to ratijas from comment #2)

> Is this issue still reproducible? I don't see any empty menus or submenus in
> Kate.  I do get an empty unnamed top-level menu at index 0 in Sublime Text &
> Sublime Merge, but it doesn't seem to cause any problems.

I have been using Window AppMenu for years, so I cannot really say, but I suppose it's fixed by now. 

Nevertheless, what Window AppMenu does (related to this) that could be ported to plasma is how this widget filters out menu entries that have no content. Definetely something good to have.
Comment 4 avlas 2022-09-23 06:51:31 UTC
I added the global menu applet to my panel to double check this issue. 

I don't see any issue with Kate either. However, and this is quite strange, global menu does not display some applications' menu entries (saw this with Konqueror and Kmail), something that window appmenu does with no issue. Perhaps there is a limitation in some applications to export the menu just once? 

I don't see this issue in other applications such as Kate and Akregator (their menu appears simultaneously in the two applets).
Comment 5 avlas 2022-09-23 07:03:30 UTC
(In reply to avlas from comment #4)
> I added the global menu applet to my panel to double check this issue. 
> 
> I don't see any issue with Kate either. However, and this is quite strange,
> global menu does not display some applications' menu entries (saw this with
> Konqueror and Kmail), something that window appmenu does with no issue.
> Perhaps there is a limitation in some applications to export the menu just
> once? 
> 
> I don't see this issue in other applications such as Kate and Akregator
> (their menu appears simultaneously in the two applets).

Further investigation, I removed window appmenu applet to test and it does not affect. Not sure why but some applications (LibreOffice also added to the list) do not export the menu to global menu. The menu can be exported to the titlebar button if enabled, but whether this button is set or not in the titlebar, does not affect either to the menu appearing in the global menu applet.
Comment 6 avlas 2022-09-23 07:36:15 UTC
I got mene entries back from these other applications (maybe I needed to restart kwin/plasma or it's related to external monitors, not sure). Anyway, after testing, I cannot reproduce this bug anymore.
Comment 7 ratijas 2022-09-23 07:48:08 UTC
> does not display some applications' menu entries (saw this with Konqueror and Kmail)

which particular ones?

> maybe I needed to restart kwin/plasma or it's related to external monitors, not sure

yes, for some reason after adding or removing Global Menu applet you need to restart both Plasma and apps to change where menu appears (i.e. easier to log out and log back in, or just reboot).
Comment 8 avlas 2022-09-23 08:46:17 UTC
(In reply to ratijas from comment #7)
> > does not display some applications' menu entries (saw this with Konqueror and Kmail)
> 
> which particular ones?
> 
> > maybe I needed to restart kwin/plasma or it's related to external monitors, not sure
> 
> yes, for some reason after adding or removing Global Menu applet you need to
> restart both Plasma and apps to change where menu appears (i.e. easier to
> log out and log back in, or just reboot).

I see, thanks