-void expose(XEvent *);
-void keypress(XEvent *);
-void buttonpress(XEvent *);
-void configurerequest(XEvent *);
-void configurenotify(XEvent *);
-void destroynotify(XEvent *);
-void enternotify(XEvent *);
-void focusevent(XEvent *);
-void mapnotify(XEvent *);
-void mappingnotify(XEvent *);
-void maprequest(XEvent *);
-void propertynotify(XEvent *);
-void unmapnotify(XEvent *);
-void visibilitynotify(XEvent *);
-void clientmessage(XEvent *);
-
-void (*handler[LASTEvent])(XEvent *) = {
- [Expose] = expose,
- [KeyPress] = keypress,
- [ButtonPress] = buttonpress,
- [ConfigureRequest] = configurerequest,
- [ConfigureNotify] = configurenotify,
- [DestroyNotify] = destroynotify,
- [EnterNotify] = enternotify,
- [FocusIn] = focusevent,
- [FocusOut] = focusevent,
- [MapNotify] = mapnotify,
- [MappingNotify] = mappingnotify,
- [MapRequest] = maprequest,
- [PropertyNotify] = propertynotify,
- [UnmapNotify] = unmapnotify,
- [VisibilityNotify] = visibilitynotify,
- [ClientMessage] = clientmessage,
-};
+void expose(xcb_expose_event_t *);
+void keypress(xcb_key_press_event_t *);
+void buttonpress(xcb_button_press_event_t *);
+void configurerequest(xcb_configure_request_event_t *);
+void configurenotify(xcb_configure_notify_event_t *);
+void destroynotify(xcb_destroy_notify_event_t *);
+void enternotify(xcb_enter_notify_event_t *);
+void mapnotify(xcb_map_notify_event_t *);
+void mappingnotify(xcb_mapping_notify_event_t *);
+void maprequest(xcb_map_request_event_t *);
+void propertynotify(xcb_property_notify_event_t *);
+void unmapnotify(xcb_unmap_notify_event_t *);
+void visibilitynotify(xcb_visibility_notify_event_t *);
+void clientmessage(xcb_client_message_event_t *);
+void screenchange(xcb_randr_screen_change_notify_event_t *);