[FR]: Disable `WaylandFractionalScaleV1` for default or do others which can fix window not scaled properly in Wayland

Open
#337 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
linux, shell
Domain
desktop

Research direction

Start by reading the Helium Linux launch configuration and how Chromium command-line arguments are set; the issue does not name specific files or tests. Reproduce the reported scaling behavior on Wayland at a fractional display scale, then check whether disabling WaylandFractionalScaleV1 by default resolves it without causing regressions. Done means the window stays correctly scaled without users editing the .desktop file.

Written by the indexing model from the issue text.

Description

feat
Description

Disable WaylandFractionalScaleV1 for default or do others which can fix window not scaled properly in Wayland

Who's implementing?
  • I'm willing to implement this feature myself
The problem

Maybe this is a classic problem of Chromium-based browsers when run in Wayland, so this is not Helium only. Based from my experience/experiment, I ran Chromuim and Helium Linux with 1366x768 monitor resolution and display scale under 100% (71%).

As far as I remember, previously most Chromium-based browsers had settings in flags named such like "Wayland per Window Scaling" or "wayland-per-window-scaling" to disable WaylandFractionalScalingV1, so window can appear with correct scale. But now, it was removed, so the only workaround to disable it just via command line argument.

If WaylandFractionalScaleV1 not disabled, Helium window shown with smaller scale, then become smaller and smaller when clicked anywhere. To fix this, Helium must launched with additional command line argument to disable WaylandFractionalScaleV1, likely this:

helium --disable-features=WaylandFractionalScaleV1

Or this:

helium-browser --disable-features=WaylandFractionalScaleV1

And window scale shows correct again.

Possible solutions

Disable WaylandFractionalScaleV1 as default in Helium so workaround such as editing .desktop file to add that argument would not required again.

Additional context

Added video recording to show differences when launching Helium without vs with disabling Wayland Fractional Scale V1.

https://github.com/user-attachments/assets/027a0625-bc84-47cd-a4bc-0a7573beabea

If this issue was solved/mentioned with different title (e.g. related with Wayland per Window Scaling or Wayland Fractional Scale), I'm apologize and it's okay to close this issue if needed due to duplicate(s).

Dominant language
Shell
Stars
1.1k
Forks
63
Avg merge
28m
Merged PRs (30d)
11

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from imputnet/helium-linux

All issues in imputnet/helium-linux

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.