aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11/mod.rs')
-rw-r--r--src/x11/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs
index 1c91e2d..3f17ca4 100644
--- a/src/x11/mod.rs
+++ b/src/x11/mod.rs
@@ -162,6 +162,12 @@ impl Window {
}
},
+ ffi::ResizeRequest => {
+ use SizeChanged;
+ let rs_event: &ffi::XResizeRequestEvent = unsafe { mem::transmute(&xev) };
+ events.push(SizeChanged(rs_event.width as uint, rs_event.height as uint));
+ },
+
_ => ()
}