Created attachment 111487 [details] duplicated global menu If you invoke the global menu using a mnemonic like Alt-F, it gets duplicated if the window has no decoration, like shows the image in attachment. Steps to reproduce: 1. Put the global menu widget on a panel 2. Open an application that has menu mnemonics, like Dolphin 3. Remove the window decoration in 'Special application settings' by marking 'Yes' for 'No titlebar and frame' under 'Appearance & Fixes' tab 4. Try invoking the global menu with Alt-F.
The question is: who should get precedence? They don't know each other. (Not arguing the fact that it's stupid to show both ;)
I believe the global menu should always have precedence, since the user chose to use it. I'm not sure how to do that technically, since I'm not familiarized neither c++ nor plasma development. Although, I think, the undecorated window could check if a global menu widget exists, and, if it does, just don't show it.
The user also explicitly chose to add the title bar to the decoration, right? So there's a bit of a conflict here...
What does "add the title bar to the decoration" mean? I might be confusing some terms, but when I say window decoration I mean the window's titlebar and border. I don't see how that's related to the app menu.
The menu button in the title bar (three lines) has to be placed explicitly by the user and enables accessing the menu through the title bar. If you have both (applet and that button) enabled, how can it know what the user's intention is?
I don't have the menu in the titlebar, only the global menu widget.
Oh, I see. KWin should ignore the signal in that case. Sorry I misunderstood.
No problem :) Maybe I wasn't clear enough. The existence of the titlebar menu didn't cross my mind until you mentioned it.
https://phabricator.kde.org/D11580
Git commit c99d329125ac745d4c764c5262a8010e9b565fde by Kai Uwe Broulik. Committed on 26/03/2018 at 08:39. Pushed by broulik into branch 'Plasma/5.12'. [AppMenu] Ignore show request when application menu isn't configured Before Plasma 5.12 one could only have either global menu or decoration button configured but since the setting was non-intuitive it was switched to auto-enable when applet or button is present. This results in both menus reacting to e.g. Alt+F for File menu. FIXED-IN: 5.12.4 Differential Revision: https://phabricator.kde.org/D11580 M +10 -0 appmenu.cpp https://commits.kde.org/kwin/c99d329125ac745d4c764c5262a8010e9b565fde