Bug 474382 - On Wayland, no titlebar buttons on CSD-using Firefox in Plasma 6
Summary: On Wayland, no titlebar buttons on CSD-using Firefox in Plasma 6
Status: RESOLVED DUPLICATE of bug 471853
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-09-10 21:05 UTC by guimarcalsilva
Modified: 2023-11-29 18:03 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Tiny cursor and no title bar icons on Firefox when using scaling on Wayland (147.66 KB, image/png)
2023-09-10 21:05 UTC, guimarcalsilva
Details
No maximize and minimize buttons (147.81 KB, image/png)
2023-09-12 18:17 UTC, guimarcalsilva
Details
gedit works (45.85 KB, image/png)
2023-11-15 23:17 UTC, fanzhuyifan
Details
telegram works (78.43 KB, image/png)
2023-11-15 23:18 UTC, fanzhuyifan
Details
firefox does not work (19.62 KB, image/png)
2023-11-15 23:18 UTC, fanzhuyifan
Details
firefox title buttons showing again (4.08 KB, image/png)
2023-11-16 16:50 UTC, fanzhuyifan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description guimarcalsilva 2023-09-10 21:05:20 UTC
Created attachment 161546 [details]
Tiny cursor and no title bar icons on Firefox when using scaling on Wayland

SUMMARY
There are no title bar buttons and a tiny cursor on Firefox when using scaling in Plasma 6 on Wayland. It works fine on 5.27.

STEPS TO REPRODUCE
1. Use scaling (I used 125% at 1080p) and re-login
2. Open Firefox

OBSERVED RESULT
The title bar has no close, minimize, and maximize buttons, and the cursor is very tiny. Check the screenshot.

EXPECTED RESULT
Normal icons and cursor with scaling, like 5.27

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-32-generic (64-bit)
Graphics Platform: X11
Processors: 6 × Intel® Core™ i5-9400F CPU @ 2.90GHz
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Comment 1 Nate Graham 2023-09-11 17:50:25 UTC
Looks like that's using the Adwaita GTK theme, because I can't reproduce the titlebar button issue when using Firefox in CSD mode with the Breeze GTK theme. Can you try that?

I can reproduce the cursor size issue, but that's something else; can you submit a new bug report for it? Thanks!
Comment 2 guimarcalsilva 2023-09-11 23:39:00 UTC
(In reply to Nate Graham from comment #1)
> Looks like that's using the Adwaita GTK theme, because I can't reproduce the
> titlebar button issue when using Firefox in CSD mode with the Breeze GTK
> theme. Can you try that?

At least on Neon the Breeze GTK theme is not working on Plasma 6, even when it's selected in System Settings on the GTK config page. Is there a way I can force the Breeze theme on Firefox?

> I can reproduce the cursor size issue, but that's something else; can you
> submit a new bug report for it? Thanks!

Here: https://bugs.kde.org/show_bug.cgi?id=474430
Comment 3 Nate Graham 2023-09-12 17:18:42 UTC
What about if you switch to another theme and then back to breeze-gtk?
Comment 4 guimarcalsilva 2023-09-12 18:15:31 UTC
(In reply to Nate Graham from comment #3)
> What about if you switch to another theme and then back to breeze-gtk?

Ok. So, I booted into a Live Image. By default, there's no GTK theme set (the combo box in the KCM is blank). If I set it, Breeze works on Firefox on X11 but not on Wayland. On X11 and Wayland, Breeze works for other GTK applications, so this is a problem specific to Firefox on Wayland.

If I go to Firefox settings and manually switch from the automatic theme to the white or black theme, it seems to use Breeze icons, and the X button appears, however, maximize and minimize are still invisible. I'll send a screenshot.
Comment 5 guimarcalsilva 2023-09-12 18:17:24 UTC
Created attachment 161585 [details]
No maximize and minimize buttons

With the theme manually set to Light, only the X button shows up on Wayland.
Comment 6 guimarcalsilva 2023-09-12 18:26:14 UTC
Ok. I now noticed I can reproduce this without scaling, so it's not the scaling that's causing it.
Comment 7 Nate Graham 2023-09-13 16:58:22 UTC
Hmm, that's still not using the Breeze GTK theme though.

Now sure how to proceed here.
Comment 8 Enrico 2023-09-21 20:57:56 UTC
I've just installed the latest Neon Unstable (20230920) and it's "broken" out of the box.
I can't see the titlebar icons on Wayland. Single 1080p monitor, no theme changes.
The "X" button to close Firefox is not visible, but it blinks hovering the mouse on it and it's working.

I've also tried changing Global Theme, Application Syle, Plasma Style, Window Decorations and Icons from the settings, but nothing changed
Comment 9 fanzhuyifan 2023-11-15 22:34:45 UTC
Can reproduce out of the box on the neon unstable version as of today. Without any modifications, there are no titlebar buttons. The X(close) button is invisible but works.
Comment 10 Nate Graham 2023-11-15 22:59:19 UTC
Thanks. Can you also reproduce this issue in other CSD apps that are not using Libadwaita? For example Telegram and Gedit (not GNOME Text). Or is it only Firefox?
Comment 11 fanzhuyifan 2023-11-15 23:17:49 UTC
Created attachment 163203 [details]
gedit works

(In reply to Nate Graham from comment #10)
> Thanks. Can you also reproduce this issue in other CSD apps that are not
> using Libadwaita? For example Telegram and Gedit (not GNOME Text). Or is it
> only Firefox?

Cannot reproduce on telegram and gedit. See attachments
Also I forgot to mention that all these tests have been happening on wayland (not sure why there is a X11 in the title)
Tested all three default themes, with same result (breeze, breeze-dark, breeze-twilight)
Comment 12 fanzhuyifan 2023-11-15 23:18:11 UTC
Created attachment 163204 [details]
telegram works
Comment 13 fanzhuyifan 2023-11-15 23:18:35 UTC
Created attachment 163205 [details]
firefox does not work
Comment 14 guimarcalsilva 2023-11-15 23:23:39 UTC
(In reply to fanzhuyifan from comment #11)
> Created attachment 163203 [details]
> gedit works
> 
> (In reply to Nate Graham from comment #10)
> > Thanks. Can you also reproduce this issue in other CSD apps that are not
> > using Libadwaita? For example Telegram and Gedit (not GNOME Text). Or is it
> > only Firefox?
> 
> Cannot reproduce on telegram and gedit. See attachments
> Also I forgot to mention that all these tests have been happening on wayland
> (not sure why there is a X11 in the title)
> Tested all three default themes, with same result (breeze, breeze-dark,
> breeze-twilight)

Oh yeah you're right. This affects Wayland, not X. I think I pasted the wrong "about system" info in the OP and that must have caused the confusion. I'll update the title.
Comment 15 fanzhuyifan 2023-11-16 04:08:51 UTC
fyi after a few restarts right now my firefox titlebar buttons are back. I did not update the system. I might have tweaked a few settings, but I don't recall changing anything that seemed super relevant to this.
Comment 16 fanzhuyifan 2023-11-16 04:17:49 UTC
Actually it might have been an automatic system update that I was not aware of. Anyways right now I can not reproduce it after many restarts (previously it was consistently reproducible 100%). @guimarcalsilva, do you still have this issue after applying the latest updates?
Comment 17 guimarcalsilva 2023-11-16 11:47:29 UTC
(In reply to fanzhuyifan from comment #16)
> Actually it might have been an automatic system update that I was not aware
> of. Anyways right now I can not reproduce it after many restarts (previously
> it was consistently reproducible 100%). @guimarcalsilva, do you still have
> this issue after applying the latest updates?

Unfortunately, I can still reproduce it on Neon even after updating it. Did the buttons that appear look like the Breeze Theme? Here my Firefox seems to be using GNOME's Adwaita theme.
Comment 18 fanzhuyifan 2023-11-16 16:50:38 UTC
Created attachment 163221 [details]
firefox title buttons showing again

(In reply to guimarcalsilva from comment #17)
> Unfortunately, I can still reproduce it on Neon even after updating it. Did
> the buttons that appear look like the Breeze Theme? Here my Firefox seems to
> be using GNOME's Adwaita theme.

Seems to be the breeze theme (see attachment)
Comment 19 Vlad Zahorodnii 2023-11-22 09:46:39 UTC
I've been using firefox with csd for a long time and haven't seen this bug. Do you run ff in native wayland mode or x11? To find out, open `about:support` and look for "Window protocol" field.
Comment 20 Vlad Zahorodnii 2023-11-22 09:47:41 UTC
there are still csd buttons even when using xwayland
Comment 21 fanzhuyifan 2023-11-27 23:33:27 UTC
Should this be considered a duplicate of https://bugs.kde.org/show_bug.cgi?id=471853 ?
Comment 22 Nate Graham 2023-11-29 18:03:46 UTC
Yep, good catch.

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