mouse: export mouse_query_pointer()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d61c6f5ae9
commit
ffca477d5d
2
mouse.c
2
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
|
* \param mask will be set to the current buttons state
|
||||||
* \return true on success, false if an error occured
|
* \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)
|
mouse_query_pointer(xcb_window_t window, int *x, int *y, uint16_t *mask)
|
||||||
{
|
{
|
||||||
xcb_query_pointer_cookie_t query_ptr_c;
|
xcb_query_pointer_cookie_t query_ptr_c;
|
||||||
|
|
2
mouse.h
2
mouse.h
|
@ -41,6 +41,8 @@ struct button_t
|
||||||
|
|
||||||
void button_delete(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)
|
DO_RCNT(button_t, button, button_delete)
|
||||||
ARRAY_FUNCS(button_t *, button, button_unref)
|
ARRAY_FUNCS(button_t *, button, button_unref)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue