You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, yeah, I forgot about that. Glutin examples are actually broken regarding wayland...
The only example that I know to work is the window one, but it requires patching first: you to do the draw_frame and swap_buffers once before the event loop starts, overwose it deadlocks waiting for events coming from a window that is not yet visible.
Activity
johalun commentedon Jan 20, 2017
Wayland debug output comparison, working wayland-window crate's simple_window vs winit crate's window. Weston with X11 backend.
winit: window
Log stops here. No window presented.
wayland-window: simple_window
Window is presented.
[-]No events on Weston/FreeBSD[/-][+]No window on Weston/FreeBSD[/+]tomaka commentedon Jan 20, 2017
Ping @vberger
elinorbgr commentedon Jan 20, 2017
This is a known issue, and relates to some characteristics of wayland (aka: this is expected behavior).
A wayland window is not shown at all before anything is drawn on it. And a window don't generates event as long as it is not displayed.
Winit does not display anything, so the event loop deadlocks.
You can try a glutin example, they should work.
johalun commentedon Jan 20, 2017
Sorry but that's not it. I first tried glutin but no examples work (same behavior), I narrowed it down to wayland-window vs winit.
elinorbgr commentedon Jan 20, 2017
Oh, yeah, I forgot about that. Glutin examples are actually broken regarding wayland...
The only example that I know to work is the window one, but it requires patching first: you to do the
draw_frameandswap_buffersonce before the event loop starts, overwose it deadlocks waiting for events coming from a window that is not yet visible.johalun commentedon Jan 20, 2017
That did it. Thanks! At least it is working now with this temporary workaround.
Auto merge of rust-windowing#109 - gterzian:return_mouse_coords_in_wh…
fix(linux): update `request_user_attention` impl (rust-windowing#109)