| Summary: | Brave browser scales incorrectly when maximized to screen scaled to 75% | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | unhappy-ending |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | john.kizer, nate |
| Priority: | NOR | Keywords: | wayland-only |
| Version First Reported In: | 6.3.4 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Brave maximized but scaled incorrectly | ||
|
Description
unhappy-ending
2025-04-11 22:12:18 UTC
Created attachment 180186 [details]
Brave maximized but scaled incorrectly
unset the following env variables: export QT3D_RENDERER=opengl # opengl, rhi export QSG_RHI_BACKEND=opengl # vulkan, metal, opengl, d3d11, d3d12 export QSG_RENDER_LOOP=threaded # basic, threaded Plasma Renderer is set to defaults. No change. Removed the Arc A750 and tested on a Nvidia RTX 3070. No change. Funny, this didn't used to happen. Not sure what changed other than adding the Arc GPU. I did have this problem about a year ago but at some point it went away, and now it's back. Tested both Intel i915 driver and xe driver. No difference. Running Brave with --ozone-platform=x11 does not have this problem. Hi - without having multiple monitors myself that I could use to try to reproduce this, my guess would be that it's somehow related to this work in Chromium - leaving the link in case it helps with other research: https://issues.chromium.org/issues/336007385 (In reply to John Kizer from comment #5) > Hi - without having multiple monitors myself that I could use to try to > reproduce this, my guess would be that it's somehow related to this work in > Chromium - leaving the link in case it helps with other research: > https://issues.chromium.org/issues/336007385 That gave me the idea to try Chromium's --force-device-scale-factor flag and setting it to 1 to enforce a 100% scale always. No difference. That got me wondering what happens if I change the display's scaling to something else and it turns out kscreen's scaling settings do actually matter here. For example, if I set the 1080p monitor from 75% scaling to 100% and move the browser window between the two, it no longer re-scales Brave. It's only when the scaling for the monitor is less than 100%. When it's less than 100%, moving Brave will from the big monitor to the small one re-scales it to a smaller window, and then moving it back to the big one re-scales it smaller again, and moving it back again will re-scale it even smaller until there's a singularity in the universe. What if both monitors are 100% or higher? Brave won't re-scale when moved between the two. What if both monitors are 75%? Brave won't re-scale when moved between them. What if 4K is 50% and 1080p is 75%? Brave will re-scale between the two. I didn't notice this before, but when Brave is on a monitor that has less than 100% scaling, grabbing it by the corner to resize results in a phantom window that you're pulling from and it re-scales the visible parts smaller than the actual window. Does the same issue if you have only a single screen and it's scaled to 75%? Updating status since this is pending some information from the reporter, thanks! (In reply to Nate Graham from comment #7) > Does the same issue if you have only a single screen and it's scaled to 75%? Yes. Since I didn't have another screen I could bounce Brave between I did the corner drag test and it had the phantom window issue. |