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
1 changed files with 2 additions and 1 deletions

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 ) );
}