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

Under Wayland the window is semi-transparent, and WM sees it as only 1 pixel #90

Open
bestouff opened this issue Aug 28, 2017 · 8 comments

Comments

@bestouff
Copy link

bestouff commented Aug 28, 2017

When running on of the examples (with rustc 1.18.0), the windows are always kind of transparent (see attached screenshot). What's stranger is that the window manager seems to see it as only 1 pixel wide and high (look at the top-left corner of the window, you'll see the window borders are stuck around there) :
threewindowtrouble

@vitvakatu
Copy link
Member

vitvakatu commented Aug 28, 2017

Hello, thanks for testing. It seems like glutin issue actually, can you test glutin examples?
UPD: What window manager are you using?

@vitvakatu vitvakatu added the bug label Aug 28, 2017
@bestouff
Copy link
Author

Indeed it seems it's glutin related (I'm running a standard GNOME on Wayland):

[xav@pcxav:~/git/glutin]$ cargo run --example window 
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/examples/window`
Pixel format of the window's GL context: PixelFormat { hardware_accelerated: true, color_bits: 24, alpha_bits: 8, depth_bits: 24, stencil_bits: 8, stereoscopy: false, double_buffer: true, multisampling: None, srgb: false }
OpenGL version 3.3 (Core Profile) Mesa 13.0.6
WindowEvent { window_id: WindowId(Wayland(WindowId(140706616329072))), event: Resized(1, 1) }
WindowEvent { window_id: WindowId(Wayland(WindowId(140706616329072))), event: Focused(true) }
WindowEvent { window_id: WindowId(Wayland(WindowId(140706616329072))), event: Resized(1, 1) }

I'll open a glutin bug.

@bestouff
Copy link
Author

I think it's already there: rust-windowing/glutin#889 (at least for the pixel-size problem, not the transparency problem).

@vitvakatu
Copy link
Member

@bestouff there is another winit issue: rust-windowing/winit#163

@bestouff
Copy link
Author

Yes it's referenced in the first one. I guess I'll have to wait a bit before playing with three ...

@vitvakatu
Copy link
Member

Sad to hear that :(
I'm leaving this issue open, ping me if you find a solution that requires changes inside three

@kvark
Copy link
Collaborator

kvark commented Aug 28, 2017

@bestouff the obvious workaround would be to run it through Xorg instead of Wayland

I guess I'll have to wait a bit before playing with three ...

Most of the projects use winit/glutin for windowing. I suppose you can try ggez for it's using SDL.

@bestouff
Copy link
Author

@kvark Yep I have rebooted (sometimes you have to:)) just to try under Xorg and it works fine.

@bestouff bestouff changed the title Under Debian the window is semi-transparent, and WM sees it as only 1 pixel Under Wayland the window is semi-transparent, and WM sees it as only 1 pixel Aug 29, 2017
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

3 participants