From 5764b9c243e0c1732fdce186e4de4e34540b95e3 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 28 Jul 2014 13:16:55 +0200 Subject: Implement resize events on X11 --- src/x11/ffi.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/x11/ffi.rs') diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs index b636b99..5caabc5 100644 --- a/src/x11/ffi.rs +++ b/src/x11/ffi.rs @@ -241,6 +241,17 @@ pub struct XClientMessageEvent { pub l: [libc::c_long, ..5], } +#[reprc(C)] +pub struct XResizeRequestEvent { + pub type_: libc::c_int, + pub serial: libc::c_ulong, + pub send_event: Bool, + pub display: *mut Display, + pub window: Window, + pub width: libc::c_int, + pub height: libc::c_int, +} + #[link(name = "GL")] #[link(name = "X11")] extern "C" { -- cgit v1.2.3