diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-28 13:32:10 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-28 13:34:47 +1000 |
commit | ad54e01a91a0ff034e0f8d84822fdd20b0726481 (patch) | |
tree | 3a731cd9cfee8229be51f9d3f92ad5874d662df0 /src/x11/ffi.rs | |
parent | 0392dc697ae4d96374be52fc98431cb91c46840e (diff) | |
download | glutin-ad54e01a91a0ff034e0f8d84822fdd20b0726481.tar.gz glutin-ad54e01a91a0ff034e0f8d84822fdd20b0726481.zip |
Fix resize event on X11. Without this change, resizing window larger than initial size doesn't work.
Diffstat (limited to 'src/x11/ffi.rs')
-rw-r--r-- | src/x11/ffi.rs | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -1338,6 +1338,23 @@ pub struct XButtonEvent { } #[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, pub hdisplay: libc::c_ushort, |