mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 16:15:38 +00:00
* Functions.cs: Added helper function for XSendEvent, so that we
don't need to cast the EventMask to IntPtr.
This commit is contained in:
parent
e2dd2cb58f
commit
47c1cc69e5
|
@ -157,6 +157,11 @@ namespace OpenTK.Platform.X11
|
|||
[DllImport("libX11", EntryPoint = "XSendEvent")]
|
||||
public extern static int XSendEvent(IntPtr display, IntPtr window, bool propagate, IntPtr event_mask, ref XEvent send_event);
|
||||
|
||||
public static int XSendEvent(IntPtr display, IntPtr window, bool propagate, EventMask event_mask, ref XEvent send_event)
|
||||
{
|
||||
return XSendEvent(display, window, propagate, new IntPtr((int)event_mask), ref send_event);
|
||||
}
|
||||
|
||||
[DllImport("libX11", EntryPoint = "XQueryTree")]
|
||||
public extern static int XQueryTree(IntPtr display, IntPtr window, out IntPtr root_return, out IntPtr parent_return, out IntPtr children_return, out int nchildren_return);
|
||||
|
||||
|
|
Loading…
Reference in a new issue