1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Quick when failed to grab keyboard. #524

This commit is contained in:
Dave Davenport 2017-01-04 10:37:05 +01:00
parent 4f4770ee4f
commit 129d96928a

View file

@ -598,7 +598,8 @@ static gboolean startup ( G_GNUC_UNUSED gpointer data )
int has_keyboard = take_keyboard ( xcb_stuff_get_root_window ( xcb ) );
if ( !has_keyboard ) {
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 ) );
}