Bug 437167 - When I press ctrl+m, a warning says "This will hide the menu bar completely..." despite menu bar is already hidden
Summary: When I press ctrl+m, a warning says "This will hide the menu bar completely.....
Status: RESOLVED DUPLICATE of bug 439266
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-15 17:35 UTC by Patrick Silva
Modified: 2024-02-17 12:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (104.86 KB, image/png)
2021-05-15 17:35 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2021-05-15 17:35:49 UTC
Created attachment 138467 [details]
screenshot

1. in Window Decorations KCM, add appmenu to window decoration
2. open Kate (menu bar is hidden as expected)
3. close Kate
4. in Window Decorations KCM, remove app menu from window decoration
5. open Kate again (menu bar is still hidden)
6. press ctrl+m

OBSERVED RESULT
Kate displays a warning saying "This will hide the menu bar completely..."
despite it is already hidden. Please see the attached screenshot.

EXPECTED RESULT
do not say "This will hide the menu bar completely..." when menu bar is already hidden

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Kåre Särs 2021-05-16 12:49:20 UTC
I got the same result when adding/removing the "Global Menu" widget...

I think this is a Plasma/KF5 problem... I do not think Kate has any special handling for this...
Comment 2 Patrick Silva 2021-05-16 12:54:09 UTC
humm, I can't reproduce following the same steps with Gwenview.
Comment 3 Kåre Särs 2021-05-16 13:13:57 UTC
humm, again :)

I tried it with Gwenview and there the menu disappeared when the title-bar-menu was enabled as it should, but when I disabled the title-bar-menu the menu was still hidden (same with Kate)... 

So I see two problems here...

1) The menu-bar does not automatically come back when you disable the title-bar-menu/global-menu.
2) Kate does not know the menu is hidden and thinks it needs to hide it first. Gwenview somehow knows the menu is hidden.
Comment 4 Podagric 2021-08-18 15:51:12 UTC
I used the global menu for a few days, and now after I removed it, the menu bar is no longer displayed. Every time I open kate I need to press the shortcut twice to display it.
Kate 21.11.70
Comment 5 Patrick Silva 2024-02-17 12:21:58 UTC

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