Open SiebenCorgie opened 7 years ago
Interesting! Seems like the compositor takes the alpha values of our framebuffers into account. In our cube example, the alpha values are incorrect (0.0f), resulting into a blending with the background.
Not sure if it should be transparent by default, this might be a glutin issue. I can reproduce it on windows by enabling transparency in the WindowBuilder.
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?
Not sure if it should be transparent by default, this might be a glutin issue.
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.
It got missing close/minimize/maximize buttons, and not the correct, themed window frame.
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.
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.
What I get on Wayland looks a lot worse:
(cube example of pre-ll)
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.