mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Quick when failed to grab keyboard. #524
This commit is contained in:
parent
4f4770ee4f
commit
129d96928a
1 changed files with 2 additions and 1 deletions
|
@ -598,7 +598,8 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data )
|
||||||
int has_keyboard = take_keyboard ( xcb_stuff_get_root_window ( xcb ) );
|
int has_keyboard = take_keyboard ( xcb_stuff_get_root_window ( xcb ) );
|
||||||
if ( !has_keyboard ) {
|
if ( !has_keyboard ) {
|
||||||
fprintf ( stderr, "Failed to grab keyboard, even after %d uS.", 500 * 1000 );
|
fprintf ( stderr, "Failed to grab keyboard, even after %d uS.", 500 * 1000 );
|
||||||
return FALSE;
|
g_main_loop_quit ( main_loop );
|
||||||
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
take_pointer ( xcb_stuff_get_root_window ( xcb ) );
|
take_pointer ( xcb_stuff_get_root_window ( xcb ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue