Skip to content

Commit

Permalink
Merge pull request #2500 from AvaloniaUI/xinput-32bit
Browse files Browse the repository at this point in the history
[X11] Use UIntPtr for serial field in XI2 structs
  • Loading branch information
kekekeks authored May 7, 2019
2 parents 4652368 + 80ff9a0 commit 24d1539
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Avalonia.X11/XIStructs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ enum XiDeviceClass
unsafe struct XIDeviceChangedEvent
{
public int Type; /* GenericEvent */
public ulong Serial; /* # of last request processed by server */
public UIntPtr Serial; /* # of last request processed by server */
public Bool SendEvent; /* true if this came from a SendEvent request */
public IntPtr Display; /* Display the event was read from */
public int Extension; /* XI extension offset */
Expand All @@ -214,7 +214,7 @@ unsafe struct XIDeviceChangedEvent
struct XIDeviceEvent
{
public XEventName type; /* GenericEvent */
public ulong serial; /* # of last request processed by server */
public UIntPtr serial; /* # of last request processed by server */
public Bool send_event; /* true if this came from a SendEvent request */
public IntPtr display; /* Display the event was read from */
public int extension; /* XI extension offset */
Expand All @@ -241,7 +241,7 @@ struct XIDeviceEvent
unsafe struct XIEvent
{
public int type; /* GenericEvent */
public ulong serial; /* # of last request processed by server */
public UIntPtr serial; /* # of last request processed by server */
public Bool send_event; /* true if this came from a SendEvent request */
public IntPtr display; /* Display the event was read from */
public int extension; /* XI extension offset */
Expand Down

0 comments on commit 24d1539

Please sign in to comment.