X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fopenbox;a=blobdiff_plain;f=obt%2Fxqueue.h;h=11cd2bc084c2e42b88081fdb5f10576629bfbf82;hp=8b3127852e785d32d15d20bb84b9b257614e67c1;hb=fd77a0a7b3f892925f203287b8b46c6ec9be94ea;hpb=2e94af28e4c12166cb74233526bb79f50877903c diff --git a/obt/xqueue.h b/obt/xqueue.h index 8b312785..11cd2bc0 100644 --- a/obt/xqueue.h +++ b/obt/xqueue.h @@ -87,6 +87,15 @@ gboolean xqueue_exists_local(xqueue_match_func match, gpointer data); gboolean xqueue_remove_local(XEvent *event_return, xqueue_match_func match, gpointer data); +typedef void (*ObtXQueueFunc)(const XEvent *ev, gpointer data); + +/*! Begin listening for X events in the default GMainContext, and feed them + to the registered callback functions, added with xqueue_add_callback(). */ +void xqueue_listen(void); + +void xqueue_add_callback(ObtXQueueFunc f, gpointer data); +void xqueue_remove_callback(ObtXQueueFunc f, gpointer data); + G_END_DECLS #endif