X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fevent.h;h=6aade180b871ca185be36b0c5376b3cfd3156910;hb=ec9dd7fdd7531d2ca951a0b812bf8e63b6e9a377;hp=b3d14859d023f0fcd30e781c9d7f4c5f903444a8;hpb=f29dd7e0cd0ceef0bfe95c865b6b22d34b065b7b;p=chaz%2Fopenbox diff --git a/openbox/event.h b/openbox/event.h index b3d14859..6aade180 100644 --- a/openbox/event.h +++ b/openbox/event.h @@ -5,18 +5,24 @@ /*! Time at which the last event with a timestamp occured. */ extern Time event_lasttime; -/*! Time at which the last event with a timestamp occured before we tried to - unfocus a window. */ -extern Time event_unfocustime; /*! The value of the mask for the NumLock modifier */ -extern unsigned int NumLockMask; +extern guint NumLockMask; /*! The value of the mask for the ScrollLock modifier */ -extern unsigned int ScrollLockMask; +extern guint ScrollLockMask; void event_startup(); void event_shutdown(); +typedef struct event_fd_handler { + gint fd; + gpointer data; + void (*handler)(gint fd, gpointer data); +} event_fd_handler; + +void event_add_fd_handler(event_fd_handler *handler); +void event_remove_fd(gint n); + void event_loop(); #endif