-
Notifications
You must be signed in to change notification settings - Fork 546
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
Transparent window on wayland and glutin #1217
Comments
Interesting! Seems like the compositor takes the alpha values of our framebuffers into account. Not sure if it should be transparent by default, this might be a glutin issue. |
Interesting indeed. I tested the shadow example. Its working as it should. However, the window is still incomplete. It got missing close/minimize/maximize buttons, and not the correct, themed window frame. |
I have this issue too on Wayland, but not Xorg. (Both Mutter) |
I've also run into this on wayland+mutter, but via glium instead. This is probably either a glutin, winit, wayland-window or mutter issue. @vberger any ideas what might be going on? |
I'm pretty sure it is a perfectly normal wayland behavior, given there doesn't exist any way to specify to the compositor that your window should not be transparent.
Wayland (or at least mutter) require client-side decorations to be drawn. Currently, winit draws them using wayland-window which is a very basic decorations implementation and is still WIP. Hence the missing buttons and ugly borders. However, matching the compositor style would basically require either creating the window using GTK or parsing the GTK theme configuration and mimicking the rendering of it in wayland-window, which is way out of scope for this small crate. |
As well as many of us prefer Qt as well. |
Hi,
I tried to follow this tutorial. However, every time I try to create a window with glutin I get a dark rectangle (probably the window frame) but the inside should be filled I guess.
And this is how the cube example looks like:
I am on Wayland 1.13.0 with and intel/nvidia hybrid. I tried to run everything with "primusrun". But it didn't change anything.
This is the code I am using:
And this is the Cargo.toml:
Any idea what the problem could be? If you need more information about hard- or software, let me know.
The text was updated successfully, but these errors were encountered: