diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/rofi.h | 1 | ||||
-rw-r--r-- | include/textbox.h | 2 | ||||
-rw-r--r-- | include/view-internal.h | 2 | ||||
-rw-r--r-- | include/view.h | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/include/rofi.h b/include/rofi.h index ef717cbc..411acb37 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -1,5 +1,6 @@ #ifndef ROFI_MAIN_H #define ROFI_MAIN_H +#include <xcb/xcb.h> #include <X11/X.h> #include <X11/Xlib.h> #include <glib.h> diff --git a/include/textbox.h b/include/textbox.h index 757b1c62..c4caa7ca 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -113,7 +113,7 @@ void textbox_draw ( textbox *tb, cairo_t *draw ); * * @returns if the key was handled (1), unhandled(0) or handled and return was pressed (-1) */ -int textbox_keypress ( textbox *tb, XEvent *ev, char *pad, int pad_len, KeySym key, Status stat ); +int textbox_keypress ( textbox *tb, xcb_key_press_event_t *ev, char *pad, int pad_len, KeySym key, Status stat ); /** * @param tb Handle to the textbox diff --git a/include/view-internal.h b/include/view-internal.h index 27ee8a00..6dd61ba2 100644 --- a/include/view-internal.h +++ b/include/view-internal.h @@ -69,7 +69,7 @@ struct RofiViewState MenuFlags menu_flags; // Handlers. - void ( *x11_event_loop )( struct RofiViewState *state, XEvent *ev ); + void ( *x11_event_loop )( struct RofiViewState *state, xcb_generic_event_t *ev ); void ( *finalize )( struct RofiViewState *state ); }; /** @} */ diff --git a/include/view.h b/include/view.h index f9763b83..d6a3aa19 100644 --- a/include/view.h +++ b/include/view.h @@ -47,7 +47,7 @@ void rofi_view_finalize ( RofiViewState *state ); MenuReturn rofi_view_get_return_value ( const RofiViewState *state ); unsigned int rofi_view_get_next_position ( const RofiViewState *state ); -void rofi_view_itterrate ( RofiViewState *state, XEvent *event ); +void rofi_view_itterrate ( RofiViewState *state, xcb_generic_event_t *event ); unsigned int rofi_view_get_completed ( const RofiViewState *state ); const char * rofi_view_get_user_input ( const RofiViewState *state ); |