diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-06 11:00:27 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-06 11:00:27 +0100 |
commit | 051be0cfe6ae0ca2a81db7c772d0ac67e1c756eb (patch) | |
tree | d51c80bb6323ead3eb2f0d9b5dd1c1402171eb0b /include | |
parent | 129d96928a644005b51ed2661566712c7f02ed87 (diff) |
Change keyboard grabbing behaviour, if you fail, continue running and try in background to get them.
Diffstat (limited to 'include')
-rw-r--r-- | include/x11-helper.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |