mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-05 00:38:10 +02:00
[main] Don't watch for keyboard input if no keyboard
In the event should_ignore_show_splash_calls () returns true, we won't ever have a keyboard set. This commit make sure that we don't try to use the keyboard if its unavailable.
This commit is contained in:
parent
9311c9d2fd
commit
aa3ee475ec
1 changed files with 2 additions and 1 deletions
|
|
@ -1510,7 +1510,8 @@ start_boot_splash (state_t *state,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
ply_keyboard_watch_for_input (state->keyboard);
|
||||
if (state->keyboard != NULL)
|
||||
ply_keyboard_watch_for_input (state->keyboard);
|
||||
|
||||
update_display (state);
|
||||
return splash;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue