diff options
Diffstat (limited to 'include/xcwm/event.h')
-rw-r--r-- | include/xcwm/event.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/include/xcwm/event.h b/include/xcwm/event.h index a280c43..22255f2 100644 --- a/include/xcwm/event.h +++ b/include/xcwm/event.h @@ -37,24 +37,20 @@ typedef struct xcwm_event_t xcwm_event_t; typedef void (*xcwm_event_cb_t)(xcwm_event_t const *event); /* Event types */ -#define XTOQ_DAMAGE 0 -#define XTOQ_EXPOSE 1 -#define XTOQ_CREATE 2 -#define XTOQ_DESTROY 3 +typedef enum xcwm_event_type_t { + XCWM_EVENT_WINDOW_DAMAGE = 0, + XCWM_EVENT_WINDOW_EXPOSE, + XCWM_EVENT_WINDOW_CREATE, + XCWM_EVENT_WINDOW_DESTROY +} xcwm_event_type_t; /** * Return the event type for the given event. */ -int +xcwm_event_type_t xcwm_event_get_type(xcwm_event_t const *event); /** - * Return the context for the given event. - */ -xcwm_context_t * -xcwm_event_get_context(xcwm_event_t const *event); - -/** * Return the window for the given event. * @param event The event * @return The window connected to the event. |