wayland: Resized event

This commit is contained in:
Victor Berger 2015-08-21 18:48:08 +02:00
parent bfc709fdd1
commit f3e67128db
2 changed files with 15 additions and 1 deletions

View file

@ -134,6 +134,13 @@ impl Window {
if let Some(f) = self.resize_callback {
f(w as u32, h as u32);
}
if let Some(ref ctxt) = *WAYLAND_CONTEXT {
let mut window_guard = self.shell_window.lock().unwrap();
ctxt.push_event_for(
window_guard.get_shell().get_wsurface().get_id(),
Event::Resized(w as u32, h as u32)
);
}
}
b
}