Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wayland] Dropdown menu bugged #207

Closed
GrabbenD opened this issue Aug 22, 2023 · 6 comments
Closed

[Wayland] Dropdown menu bugged #207

GrabbenD opened this issue Aug 22, 2023 · 6 comments

Comments

@GrabbenD
Copy link

System Details

  • OS: Arch Linux
  • Thorium Version: Version 115.0.5790.172

Problem
With Wayland (Sway), drop down menus are difficult to use, e.g. in chrome://flags

  • Hovering over items highlights the wrong item in the array (but it's right when you click)
  • Drop down menu is flickering and leaving artifacts from mouse highlight
  • After selection, the menu leaves borders on the screen

For reference, Thorium is started with:

$ thorium-browser --ozone-platform=wayland

Screenshots
N/A

Additional Notes
N/A

@crthpl
Copy link

crthpl commented Aug 22, 2023

I am on Hyprland and the chrome://flags dropdowns work fine for me. What compositor are you using?

@GrabbenD
Copy link
Author

GrabbenD commented Aug 22, 2023

@crthpl Here's what I noticed:

  1. On first start after entering (Sway) compositor, it works but if you:
    • Restart the browser this bug starts to happen
    • (or) Try the new Thorium theme via Experiments
  2. WLR_RENDERER doesn't make a difference (default vs vulkan)
  3. I could reproduce this with hyprland-git
  4. This only happens if Wayland mode is used (as default seems to be XWayland): --ozone-platform=wayland

@Alex313031
Copy link
Owner

Alex313031 commented Aug 23, 2023

@GrabbenD @crthpl Wayland has too many bugs and inconsistencies on Chromium for me to even keep track of. I am getting to the point of personal frustration (not directed at any users, I appreciate bug reports), that I kind of feel like throwing my hands up and just labeling every wayland bug as a WontFix, letting upstream chromium sort through the mess that is wayland. Wayland is great for the things that it does, but apps need to catch up as far as wayland support, and wayland compositors could do a better job of standards compliance. It's frustrating I know. All I can say is try different things, look here in the issues or on the internet for workarounds, wait for new releases, or use XWayland or just revert to X.org.

@Alex313031
Copy link
Owner

Alex313031 commented Aug 23, 2023

@GrabbenD @crthpl That being said, if you have a specific thing that you know works in a Chromium build at the exact same revision as Thorium, but is broken in Thorium, let me know, because then I know that it is likely on my end in the //content/ dir of the source code. Often, though, it is an upstream bug, and it seems like they always pop in and out; as soon as one is fixed, another appears.

@Alex313031
Copy link
Owner

Alex313031 commented Aug 23, 2023

@gz83 What is your take on this?

#207 (comment)
#207 (comment)
(just links to the above comments by me)

@GrabbenD
Copy link
Author

You're right @Alex313031
I haven't seen this issue or any at all in Wayland since Thorium 116.0.5845.169!

For reference, now I'm using using Sway 1.9-dev + wlroots 0.17-dev with these launch parameters if anyone is curious:

# Alternatively use ~/.config/thorium-flags.conf
thorium-browser --ozone-platform=wayland --enable-zero-copy --enable-features=VaapiVideoDecoder --enable-features=CanvasOopRasterization --enable-gpu-rasterization --use-vulkan

Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Enabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Raw Draw: Disabled
Skia Graphite: Disabled
Video Decode: Hardware accelerated
Video Encode: Hardware accelerated
Vulkan: Enabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
WebGPU: Disabled

P.S. there's massive input delay with --enable-native-gpu-memory-buffers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants