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

No transparency for webview in WGPU example on Windows #1331

Closed
alexgeek opened this issue Aug 5, 2024 · 2 comments
Closed

No transparency for webview in WGPU example on Windows #1331

alexgeek opened this issue Aug 5, 2024 · 2 comments

Comments

@alexgeek
Copy link

alexgeek commented Aug 5, 2024

Describe the bug
I'm running the WGPU example on Windows and the sub view which displays the user agent has a 0.5 alpha but it has a grey background is not blending the triangle rendered by WGPU underneath it.

Steps To Reproduce
Run cargo run --example wgpu.

Expected behavior
I expected the sub webview to blend over the triangle.

Screenshots
Screenshot 2024-08-05 172504

Platform and Versions (please complete the following information):
OS: Windows 11
Rustc: 1.79.0 (129f3b996 2024-06-10)

Additional context
Came to this after looking at #677 and wanted to try it out, I don't think it's related to #692.
I tried the following commits also from around the time #677 when was completed, but I didn't get any webview rendered, just the red triangle.

  • f62aa942121f80e1908bc736ae03dc584330bb91
  • a9ad1c5
@amrbashir
Copy link
Member

amrbashir commented Aug 16, 2024

This is because winit set WS_CLIPCHILDREN by default, the current example uses [email protected] which doesn't have a way to disable that but [email protected] does, see https://docs.rs/winit/latest/x86_64-pc-windows-msvc/winit/platform/windows/trait.WindowAttributesExtWindows.html#tymethod.with_clip_children

I will leave this open for a while until I have time to update the examples

FabianLars added a commit that referenced this issue Jan 1, 2025
@aiueo13
Copy link

aiueo13 commented Jan 16, 2025

The same thing happens on macos, but can make it transparent by adding “transparent” to wry features.

#1266

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

No branches or pull requests

4 participants