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.
This commit is contained in:
parent
19d120b8b1
commit
9dc5689eef
8 changed files with 171 additions and 52 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue