From e4469cfce795879610486b51ada77c1dd7daa2f0 Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Sun, 1 Feb 2015 22:08:34 +0000 Subject: Reorder the fields of `XErrorEvent` to match the struct layout found in recent Xlib.h Fixes #244 --- src/x11/ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs index 1d9e7de..1d91cab 100644 --- a/src/x11/ffi.rs +++ b/src/x11/ffi.rs @@ -1362,11 +1362,11 @@ pub struct XF86VidModeModeInfo { pub struct XErrorEvent { pub type_: libc::c_int, pub display: *mut Display, + pub resourceid: XID, pub serial: libc::c_ulong, pub error_code: libc::c_char, pub request_code: libc::c_char, pub minor_code: libc::c_char, - pub resourceid: XID, } #[cfg(feature = "headless")] -- cgit v1.2.3