aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wayland/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/wayland/mod.rs')
-rw-r--r--src/api/wayland/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs
index ba1931b..0381f31 100644
--- a/src/api/wayland/mod.rs
+++ b/src/api/wayland/mod.rs
@@ -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
}