From 9dc5689eef87cace5e6ac6b5438928a1c99688c4 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Wed, 17 Dec 2014 14:49:11 +1000 Subject: Introduce a WindowProxy for accessing a subset of functionality from other threads. This currently provides a way for other threads to wakeup a blocked event loop on X11. Other platforms have stub functions that need to be implemented. This is similar to the functionality of glfwPostEmptyEvent. --- src/x11/ffi.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/x11/ffi.rs') diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs index 3fe6499..1f8b10f 100644 --- a/src/x11/ffi.rs +++ b/src/x11/ffi.rs @@ -1420,6 +1420,8 @@ extern "C" { x_return: *mut libc::c_int, y_return: *mut libc::c_int, width_return: *mut libc::c_uint, height_return: *mut libc::c_uint, border_width_return: *mut libc::c_uint, depth_return: *mut libc::c_uint) -> Status; + pub fn XSendEvent(display: *mut Display, window: Window, propagate: Bool, + event_mask: libc::c_long, event_send: *mut XEvent) -> Status; pub fn XInternAtom(display: *mut Display, atom_name: *const libc::c_char, only_if_exists: Bool) -> Atom; pub fn XKeycodeToKeysym(display: *mut Display, keycode: KeyCode, -- cgit v1.2.3