Update wayland-window to support xdg_shell

This commit is contained in:
Victor Berger 2017-07-05 16:23:10 +02:00
parent 28eddb64a9
commit 8d5b23d56c
5 changed files with 147 additions and 68 deletions

View file

@ -155,6 +155,15 @@ impl EventsLoop {
}
);
}
if decorated.handler().as_ref().map(|h| h.is_closed()).unwrap_or(false) {
callback(
::Event::WindowEvent {
window_id: ::WindowId(::platform::WindowId::Wayland(make_wid(&window))),
event: ::WindowEvent::Closed
}
);
}
}
}