X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.h;h=b8f567a8d9c41978636d10cf2969db1957ba6029;hb=78a8680cd7379cc0d75af810dabe62c7a6c4a8b2;hp=b3d14859d023f0fcd30e781c9d7f4c5f903444a8;hpb=f29dd7e0cd0ceef0bfe95c865b6b22d34b065b7b;p=chaz%2Fopenbox diff --git a/openbox/event.h b/openbox/event.h index b3d14859..b8f567a8 100644 --- a/openbox/event.h +++ b/openbox/event.h @@ -5,9 +5,6 @@ /*! 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; @@ -17,6 +14,15 @@ extern unsigned int ScrollLockMask; void event_startup(); void event_shutdown(); +typedef struct event_fd_handler { + int fd; + void *data; + void (*handler)(int fd, void *data); +} event_fd_handler; + +void event_add_fd_handler(event_fd_handler *handler); +void event_remove_fd(int n); + void event_loop(); #endif