From ffca477d5d535a5bfae82c0d8e2720b0725ddb8d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 13 Nov 2008 16:08:14 +0100 Subject: [PATCH] mouse: export mouse_query_pointer() Signed-off-by: Julien Danjou --- mouse.c | 2 +- mouse.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mouse.c b/mouse.c index 85934f98..5ff07b44 100644 --- a/mouse.c +++ b/mouse.c @@ -308,7 +308,7 @@ mouse_infobox_new(simple_window_t *sw, int phys_screen, int border, area_t geome * \param mask will be set to the current buttons state * \return true on success, false if an error occured **/ -static bool +bool mouse_query_pointer(xcb_window_t window, int *x, int *y, uint16_t *mask) { xcb_query_pointer_cookie_t query_ptr_c; diff --git a/mouse.h b/mouse.h index 45f3b1c0..332e355a 100644 --- a/mouse.h +++ b/mouse.h @@ -41,6 +41,8 @@ struct button_t void button_delete(button_t **); +bool mouse_query_pointer(xcb_window_t, int *, int *, uint16_t *); + DO_RCNT(button_t, button, button_delete) ARRAY_FUNCS(button_t *, button, button_unref)