I will post this as a bug if someone could kindly point me in the right direction – is this a bug with plasma? Which part of plasma? (I would guess kwayland-integration.) Sorry, not a fan of KDE’s bug submission system, as I don’t know KDE’s architecture well enough to tell developers which part of their software is buggy.
But maybe it isn’t quite a bug as a misconfiguration…
Started on 22.10, upgraded to 23.04 and then 23.10. Decided to switch to Wayland yesterday. everything smoother and faster, but Firefox’s windows control buttons look like they’re from Gnome, in that there is a close button but no minimise or full-screen buttons (since, on Gnome, they’d not be in the window, but across the top toolbar of Gnome).
Without going back to X11 or enabling the title bar in Firefox, how might I fix this?
Try regenerating GTK styles: systemsettings - appearance - application style - gnome/gtk - select a different style (e.g. adwaita) and apply, then select back to breeze and apply
Jinliu, that has changed the appearance that it now has buttons, but that is a patch to solve a small issue with a greater problem, I believe. I’ve found another symptom of the underlying cause, if not the cause itself; Plasma integration isn’t working. Error message on the integration plugin is: Failed to connect to the native host. I’m using the snap version of Firefox.
Backstory: Two similar devices: laptop and desktop. Both loaded with Kubuntu 22.10 in Jan/ Feb, upgraded to 23.04 and then 23.10. Post 23.10 upgrade, the laptop demonstrated graphics glitches on X11, opening Firefox and Chrome with glitch that looked like, imagine the dice face for 5, create a b&w tile of that about 8x8 pixel, repeat the tiles, created a transparency mask out of that pattern and applied it to Firefox and Chromium windows. I switched from X11 to Wayland on the laptop and now everything on the laptop seems correct, graphics glitch gone. Liking Wayland and the laptop’s improved responsiveness, I decided to switch to Wayland on the desktop PC, and it is here that the plasma integration will not work with Firefox. Biggest difference between laptop and desktop is one is AMD, other is Intel/NVidia.
Anyway, more digging until I find the fix for both devices to be stable and fully operational on Wayland.
It sounds like your Firefox is using client-side decoration, i.e. drawing its own decoration instead of letting the system do it.
That’s not really a Plasma bug in any way, rather a decision from Firefox.
In about:config you can disable this by setting browser.tabs.inTitlebar to 0
Thanks for your suggestions, but a couple have missed that in my original question , I ask how to fix without enabling the title bar in Firefox.
I think I’m on to something with the Plasma Integration plug-in not working. Will keep you posted. Any more suggestions appreciated.
I ask how to fix without enabling the title bar in Firefox
Did you try the 3 steps above, it didn’t say to activate titlebar but to disable it.
Sorry medin, I was too quick to say you’re suggesting I turn it on, you were suggesting I check that it is off. Alas, made no difference.
I purged snap Firefox and reinstalled, then I tested with Flatpak Firefox, same error. Using Mozilla’s PPA I got the deb version and that worked as intended, both the Plasma Integration, and the correct minimise and full-screen buttons.
Why my laptop’s snap version of Firefox behaves when the PC doesn’t… meh.
Sorry, I forgot you are not using native version, so the main culprit is surely
xdg-desktop-portal-gtk, did you install it and reboot ?