mirror of
https://github.com/lbonn/rofi
synced 2024-11-24 04:43:03 +00:00
Check table exists.
This commit is contained in:
parent
fe8aa55fdc
commit
fc75a204d5
1 changed files with 4 additions and 0 deletions
|
@ -699,6 +699,10 @@ int main ( int argc, char *argv[] )
|
|||
xkb.state = xkb_x11_state_new_from_device ( xkb.keymap, xcb->connection, xkb.device_id );
|
||||
|
||||
xkb.compose.table = xkb_compose_table_new_from_locale ( xkb.context, setlocale ( LC_CTYPE, NULL ), 0 );
|
||||
if ( xkb.compose.table == NULL ) {
|
||||
fprintf(stderr, "Failed to load compose table.\n");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
xkb.compose.state = xkb_compose_state_new ( xkb.compose.table, 0 );
|
||||
|
||||
x11_setup ( &xkb );
|
||||
|
|
Loading…
Reference in a new issue