From 051be0cfe6ae0ca2a81db7c772d0ac67e1c756eb Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 6 Jan 2017 11:00:27 +0100 Subject: Change keyboard grabbing behaviour, if you fail, continue running and try in background to get them. --- include/x11-helper.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/x11-helper.h b/include/x11-helper.h index e950fdc7..ac8ea92f 100644 --- a/include/x11-helper.h +++ b/include/x11-helper.h @@ -123,21 +123,23 @@ void release_pointer ( void ); /** * @param w xcb_window_t we want to grab keyboard on. + * @param iters Number of retries. * * Grab keyboard. * * @return 1 when keyboard is grabbed, 0 not. */ -int take_keyboard ( xcb_window_t w ); +int take_keyboard ( xcb_window_t w, int iters ); /** * @param w xcb_window_t we want to grab mouse on. + * @param iters Number of retries. * * Grab mouse. * * @return 1 when mouse is grabbed, 0 not. */ -int take_pointer ( xcb_window_t w ); +int take_pointer ( xcb_window_t w, int iters ); /** * @param mask The mask to canonilize -- cgit v1.2.3