Skip to content

Commit

Permalink
Add conversions for XGenericEventCookie.
Browse files Browse the repository at this point in the history
  • Loading branch information
daggerbot committed Apr 23, 2016
1 parent ef2b167 commit 22dff4d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/xlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,7 @@ event_conversions_and_tests! {
XErrorEvent,
XExposeEvent,
XFocusChangeEvent,
XGenericEventCookie,
XGraphicsExposeEvent,
XGravityEvent,
XKeyEvent,
Expand Down Expand Up @@ -1796,12 +1797,6 @@ pub struct XGenericEventCookie {
pub data: *mut c_void,
}

impl From<XEvent> for XGenericEventCookie {
fn from (e: XEvent) -> XGenericEventCookie {
unsafe { transmute_union(&e) }
}
}

#[derive(Clone, Copy, PartialEq)]
#[repr(C)]
pub struct XHostAddress {
Expand Down

0 comments on commit 22dff4d

Please sign in to comment.