wayland: add a warning in the examples in case no window is displayed.
This commit is contained in:
parent
8d5b23d56c
commit
c86cf416d5
8 changed files with 48 additions and 0 deletions
|
|
@ -10,6 +10,12 @@ fn main() {
|
|||
|
||||
let proxy = events_loop.create_proxy();
|
||||
|
||||
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.");
|
||||
}
|
||||
|
||||
std::thread::spawn(move || {
|
||||
// Wake up the `events_loop` once every second.
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue