Skip to content

Commit

Permalink
Merge pull request #104 from chrisduerr/master
Browse files Browse the repository at this point in the history
Add XkbStateRec struct definition
  • Loading branch information
erlepereira authored Sep 9, 2019
2 parents 9e02be3 + bf73644 commit 4bc2be3
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/xlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,6 @@ pub enum _XrmHashBucketRec {}
#[repr(C)] pub struct _XkbSection;
#[repr(C)] pub struct _XkbServerMapRec;
#[repr(C)] pub struct _XkbShape;
#[repr(C)] pub struct _XkbStateRec;
#[repr(C)] pub struct _XkbSymInterpretRec;

// union placeholders
Expand Down Expand Up @@ -1687,6 +1686,25 @@ pub struct _XkbNamesRec {
pub num_rg: c_ushort,
}

#[derive(Debug, Clone, Copy, PartialEq)]
#[repr(C)]
pub struct _XkbStateRec {
pub group: c_uchar,
pub locked_group: c_uchar,
pub base_group: c_ushort,
pub latched_group: c_ushort,
pub mods: c_uchar,
pub base_mods: c_uchar,
pub latched_mods: c_uchar,
pub locked_mods: c_uchar,
pub compat_state: c_uchar,
pub grab_mods: c_uchar,
pub compat_grab_mods: c_uchar,
pub lookup_mods: c_uchar,
pub compat_lookup_mods: c_uchar,
pub ptr_buttons: c_ushort,
}


//
// Xkb event structs
Expand Down

0 comments on commit 4bc2be3

Please sign in to comment.