summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2016-02-19 22:43:53 +0100
committerQuentin Glidic <sardemff7+git@sardemff7.net>2016-02-21 16:04:53 +0100
commitfe7ca2079d97172980f0bc725f532019fc9b7eb5 (patch)
tree785e76549cb4b3973cb330efd1fc937c3d0c0f68 /include
parent2eb63456db92aa2014167194ed9d3768e1cd0131 (diff)
rofi: Convert to XCB events
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'include')
-rw-r--r--include/rofi.h1
-rw-r--r--include/textbox.h2
-rw-r--r--include/view-internal.h2
-rw-r--r--include/view.h2
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 );