mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
wayland: add a warning in the examples in case no window is displayed.
This commit is contained in:
@@ -9,6 +9,12 @@ fn main() {
|
||||
|
||||
let mut num_windows = 3;
|
||||
|
||||
if cfg!(target_os = "linux") {
|
||||
println!("Running this example under wayland may not display a window at all.\n\
|
||||
This is normal and because this example does not actually draw anything in the window,\
|
||||
thus the compositor does not display it.");
|
||||
}
|
||||
|
||||
events_loop.run_forever(|event| {
|
||||
match event {
|
||||
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, window_id } => {
|
||||
|
||||
Reference in New Issue
Block a user