From 5da38341bc54f24c8cad41f1b63405d8cc955fe7 Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 22 Nov 2015 02:58:41 -0300 Subject: next_xevent don't block anymore! Now the next_xevent (from the safex11) will not block forever. So we can listen the socket without doing some thread stuff. --- src/safe_x11/safex11.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/safe_x11/safex11.h (limited to 'src/safe_x11/safex11.h') diff --git a/src/safe_x11/safex11.h b/src/safe_x11/safex11.h new file mode 100644 index 0000000..bbf4e80 --- /dev/null +++ b/src/safe_x11/safex11.h @@ -0,0 +1,7 @@ +#ifndef _WM_EVENT_H_ +#define _WM_EVENT_H_ +#include + +int select_next_event(Display *display, int x11_fd, XEvent *retval); + +#endif -- cgit v1.2.3-70-g09d2