From ad54e01a91a0ff034e0f8d84822fdd20b0726481 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Tue, 28 Oct 2014 13:32:10 +1000 Subject: Fix resize event on X11. Without this change, resizing window larger than initial size doesn't work. --- src/x11/ffi.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/x11/ffi.rs') diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs index f9dc3ad..6fbfd81 100644 --- a/src/x11/ffi.rs +++ b/src/x11/ffi.rs @@ -1337,6 +1337,23 @@ pub struct XButtonEvent { pub same_screen: Bool, } +#[repr(C)] +pub struct XConfigureEvent { + pub type_: libc::c_int, + pub serial: libc::c_ulong, + pub send_event: Bool, + pub display: *mut Display, + pub event: Window, + pub window: Window, + pub x: libc::c_int, + pub y: libc::c_int, + pub width: libc::c_int, + pub height: libc::c_int, + pub border_width: libc::c_int, + pub above: Window, + pub override_redirect: Bool, +} + #[repr(C)] pub struct XF86VidModeModeInfo { pub dotclock: libc::c_uint, -- cgit v1.2.3