Bug 416275

Summary: Activating Application Menu Bar Removes Windows Controls in Firefox
Product: [Frameworks and Libraries] kded-appmenu Reporter: Mohan <mohan.ram>
Component: menu exporterAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: 288pat0tem, mail, nate, popov895, prettyvanilla, ryu.ketsueki, trmdi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: No controls with Application Menu Bar
Other GTK applications work fine

Description Mohan 2020-01-15 03:22:53 UTC
Created attachment 125132 [details]
No controls with Application Menu Bar

When application menu bar is added, the window controls disappear in Firefox when using it without titlebar.

STEPS TO REPRODUCE
1. Launch Firefox, Click on Menu and choose Customize, Uncheck Titlebar
2. Right click on Desktop, Add Panel, Application Menu Bar


OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Mikhail Zolotukhin 2020-01-15 10:59:28 UTC
What Plasma version are you using?
What's the contents of your ~/.config/gtk-3.0/settings.ini file?
Do the buttons reappear, if you remove application menu?
Comment 2 Mohan 2020-01-15 11:42:42 UTC
Plasma 5.17.80, I am running KDE Neon Unstable for testing.
Here is my Gtk3 settings.ini file.

[Settings]
gtk-application-prefer-dark-theme=0
gtk-button-images=1
gtk-cursor-theme-name=breeze_cursors
gtk-decoration-layout=icon:minimize,maximize,close
gtk-fallback-icon-theme=breeze
gtk-font-name=Noto Sans  10
gtk-icon-theme-name=breeze
gtk-menu-images=1
gtk-primary-button-warps-slider=0
gtk-theme-name=Breeze
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ

If I remove the applications menu bar the buttons reappear.
Comment 3 kskot 2020-01-30 16:55:33 UTC
I have the same problem. The window control buttons are scrambled for me in Firefox only. Other GTK applications work fine. 

Note: This only happens if a custom GTK theme is used. The default Breeze theme works fine.

Also using KDE neon testing.

settings.ini

[Settings]
gtk-application-prefer-dark-theme=1
gtk-button-images=1
gtk-cursor-theme-name=breeze_cursors
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=0
gtk-fallback-icon-theme=gnome
gtk-font-name=Noto Sans,  10
gtk-icon-theme-name=Papirus-Dark
gtk-menu-images=1
gtk-primary-button-warps-slider=0
gtk-theme-name=Mojave-dark-solid
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
Comment 4 kskot 2020-01-30 16:57:06 UTC
Created attachment 125548 [details]
Other GTK applications work fine
Comment 5 kskot 2020-02-02 23:03:52 UTC
Updated my system today and the window controls appear now as they should.
Comment 6 Mohan 2020-02-03 23:36:46 UTC
I am still having that on my test install. Maybe I haven't gotten the update yet.
Comment 7 popov895 2020-02-12 19:32:35 UTC
Same thing on KDE Plasma 5.18 (KDE Neon 5.18, KDE Frameworks 5.67.0, KDE Applications 19.12.2, Qt 5.13.2, clean install)
Comment 8 ryu.ketsueki 2020-05-30 02:43:27 UTC
I'm having the same issue but with the Git Master builds for openSUSE Krypton repositories. Firefox does not have Close, Maximize and Minimize buttons if a Global Menu is present.
Comment 9 ryu.ketsueki 2021-04-21 14:11:05 UTC
I had the same issues when I was using the unity-menubar patch on Firefox. It also happens with Thunderbird.

The following code on userChrome.css solved the problem on Firefox but I don't know about solving the cause:

@import "customChrome.css"; /**/
 #toolbar-menubar[autohide="true"]:not([inactive]) + #TabsToolbar > .titlebar-buttonbox-container {
     visibility: visible !important;
 }
Comment 10 trmdi 2021-05-30 03:27:39 UTC
This is a bug from Firefox and the global menu patch side. You should report it to the team that maintain that patch.

A workaround: https://gitlab.com/Thaodan/firefox-kde-opensuse/-/issues/8