Attach the raw handle data attribute

This commit is contained in:
Ryan Goldstein 2019-09-27 17:06:14 -04:00
parent a336e9e959
commit cf3b0f3b70

View file

@ -38,6 +38,8 @@ impl<T> WindowTarget<T> {
pub fn register(&self, canvas: &mut backend::Canvas, id: window::Id) {
let runner = self.runner.clone();
canvas.set_attribute("data-raw-handle", &id.0.to_string());
canvas.on_blur(move || {
runner.send_event(Event::WindowEvent {
window_id: WindowId(id),