Hy3 Layout Causes Major Rendering Issues for Chromium/Electron Apps running Native Wayland
Closed this issue · 4 comments
Reposting after discovering the root cause from: hyprwm/Hyprland#6524
Description
Brave-Browser and other Ozone Render apps when using Wayland directly as opposed to Xwayland have major issues when using
general {
layout = hy3
}
Vesktop, an electron app, fails to launch altogether and dies immediately just hanging indefinitely.
Brave-Browser has a ton of rendering issues when running on native wayland within Hyprland including:
- major pixelation and cropped windowing
- regular tearing and improper rendering
- some tabs failed to render at all and had to be closed and reopened
Here's a short video demonstrating a few of the issues. (I can't seem to upload it properly via github for whatever reason so here's an imgur link)
https://imgur.com/a/O2NcCeK
How to reproduce
For Vencord:
- run the following command:
vesktop --ozone-platform=wayland
- The gui will begin to launch and then immediately disappear after loading
- The program will just hang open indefinitely with no ability to interact with it whatsoever
For Brave:
you're sure this is hy3 related? Just tried an electron app under wayland and it seemed to work fine. Also hy3 doesn't intercept window damage.
Trying to do some testing and get a clip to confirm but suddenly I'm unable to replicate the same behaviors I posted in the original video.
There were some lingering issues even on dwindle but they seemed greatly reduced immediately after swapping from hy3 to dwindle and I had a harder time replicating on dwindle. Maybe it was just coincidence. I'm very confused now. I have found an issue that exists on both dwindle layout and hy3 layout so I may reopen the issue about that.
@outfoxxed, I did find a separate issue that is related to hy3. Vesktop fails to launch in wayland mode in the hy3 layout while it definitely works in dwindle. https://imgur.com/a/T4Csj25
Related to other issue, using hy3 hl0.41.2
fixes the issue for some reason. I have no idea what the root cause of the issue was but so long as it works I'm cool with it lol. Thanks for your work and have a good one :)