diff --git a/libinput/connection.cpp b/libinput/connection.cpp --- a/libinput/connection.cpp +++ b/libinput/connection.cpp @@ -137,9 +137,8 @@ s_context = nullptr; return nullptr; } - // TODO: don't hardcode seat name - if (!s_context->assignSeat("seat0")) { - qCWarning(KWIN_LIBINPUT) << "Failed to assign seat seat0"; + if (!s_context->assignSeat(LogindIntegration::self()->seat())) { + qCWarning(KWIN_LIBINPUT) << "Failed to assign seat"; delete s_context; s_context = nullptr; return nullptr;