dispatch libinput on ready

This commit is contained in:
Vaxry 2024-09-23 17:43:17 +01:00
parent 752d0fbd14
commit 995543ed03
1 changed files with 3 additions and 0 deletions

View File

@ -264,6 +264,9 @@ static bool isDRMCard(const char* sysname) {
} }
void Aquamarine::CSession::onReady() { void Aquamarine::CSession::onReady() {
dispatchLibseatEvents();
dispatchLibinputEvents();
for (auto const& d : libinputDevices) { for (auto const& d : libinputDevices) {
if (d->keyboard) if (d->keyboard)
backend->events.newKeyboard.emit(SP<IKeyboard>(d->keyboard)); backend->events.newKeyboard.emit(SP<IKeyboard>(d->keyboard));