thorium icon indicating copy to clipboard operation
thorium copied to clipboard

Make the Wayland backend support Gnome font scaling

Open Enderteck opened this issue 1 year ago • 7 comments

When using Ozone to get native Wayland on Thorium, the window is tiny, as it doesn't follow the rest of the apps in scaling. Here's an example:

(yes this is Chrome but i coudn't really change flags and restart the browser multiple times while I was writing this issue, same thing happens on Thorium) Preferred Ozone platform=wayland or auto: Capture d’écran du 2024-10-31 03-45-40 Preferred Ozone platform=default or x11: image

It is even more noticeable in the full window, the buttons are too small and it's even worse for PWAs: image

It also shows every website smaller and forced me to set a higher default zoom level but I still have to use the Wayland backend for any kind of drag and drop support into the browser. This has been an issue for a while and just makes me want to run to Firefox as every Chromium derived browser has it.

Having Thorium have the same size using X11 or Wayland would be an amazing solution (taking the size from X11 of course).

Here's the issue on issues.chromium: https://issues.chromium.org/issues/362737540

It is also originally part of this issue: https://issues.chromium.org/issues/40856031

Specs: Fedora 41 (beta) Gnome 47 (has been happening before) Font scaling in tweaks: 1.25 Thorium 128.0.6613.189

Enderteck avatar Oct 31 '24 03:10 Enderteck

But not everyone could run Electron apps on Wayland correctly,I use AMD Radeon 780M with Ryzen 7 8845HS,run Electron apps under Wayland will cause kwin and mutter both crash after a while.

LFRon avatar Dec 10 '24 08:12 LFRon

But not everyone could run Electron apps on Wayland correctly,I use AMD Radeon 780M with Ryzen 7 8845HS,run Electron apps under Wayland will cause kwin and mutter both crash after a while.

This doesn't have anything to do with electron, we are talking about thorium only and it doesn't force you to run them on native Wayland. Thorium has been running natively on Wayland without issue for me for at least 6 months, but not by default, you have to enable Preferred Ozone platform in the Chromium flags, fixing this bug woudn't change a thing for you. If you didn't enable that flag, your borwser has never run on native wayland and uses Xwayland instead, wich doesn't have drag and drop support and other things.

I just wish that using this flag didn't make my Thorium so small.

Enderteck avatar Dec 10 '24 10:12 Enderteck

But not everyone could run Electron apps on Wayland correctly,I use AMD Radeon 780M with Ryzen 7 8845HS,run Electron apps under Wayland will cause kwin and mutter both crash after a while.

This doesn't have anything to do with electron, we are talking about thorium only and it doesn't force you to run them on native Wayland. Thorium has been running natively on Wayland without issue for me for at least 6 months, but not by default, you have to enable Preferred Ozone platform in the Chromium flags, fixing this bug woudn't change a thing for you. If you didn't enable that flag, your borwser has never run on native wayland and uses Xwayland instead, wich doesn't have drag and drop support and other things.

I just wish that using this flag didn't make my Thorium so small.

But I met the serious problem on both KDE and GNOME,my graphic cards AMD Radeon 780M uses mesa3d and amdgpu open-source driver still cause the problem.You run it normally does not mean which could run anywhere though I want it run under wayland,either.

LFRon avatar Dec 11 '24 12:12 LFRon

How does fixing this bug affect you ?

If Thorium doesn't work for your machine you can create and issue about it. This bug fix wouldn't remove anything for you, it would just allow Thorium to respect my app size, I cannot help you run Thorium on your machine and I'm not here for that, sorry

Enderteck avatar Dec 11 '24 14:12 Enderteck

How does fixing this bug affect you ?

If Thorium doesn't work for your machine you can create and issue about it. This bug fix wouldn't remove anything for you, it would just allow Thorium to respect my app size, I cannot help you run Thorium on your machine and I'm not here for that, sorry

My PC doesnn't only meet the problem on this browser,but all of the Electron apps and on both KDE and GNOME which includes Chormium,and many people have reported the problem at Electron on Github.Also,GNOME does not support text-v1-input so people in Korea/China could not use ibus/Fcitx input method.My suggestion is opening wayland session by yourself and distribute deb in your Github repositories because it is very easy,just add "--ozone-platform=wayland --enable-wayland-ime" at the desktop Exec command line. image

LFRon avatar Dec 11 '24 16:12 LFRon

How does this relate to my issue ? This thread is about a font scaling bug, not the browser not working under Wayland.

If you encounter a bug with chromium apps, go report it to them, I cannot help you Here is where you can report Chromium specific issues:

https://issues.chromium.org/issues?q=status:open

Enderteck avatar Dec 11 '24 20:12 Enderteck

This has been fixed in Chrome 138, hopefully Thorium updates soon !

Here is the difference bewtween Chrome and Thorium with the Wayland flag:

Image

Enderteck avatar Jun 25 '25 03:06 Enderteck