Skip to content

Commit

Permalink
libinput/connection: Don't hardcode seat0 anymore
Browse files Browse the repository at this point in the history
Summary: use a new function to get the logind, instead of assuming seat0

Test Plan: kwin still starts

Reviewers: #kwin, davidedmundson

Reviewed By: davidedmundson

Subscribers: davidedmundson, rkflx, graesslin, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D9552
  • Loading branch information
n3rdopolis authored and mgraesslin committed Apr 22, 2018
1 parent e683568 commit ddda524
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libinput/connection.cpp
Expand Up @@ -135,9 +135,8 @@ Connection *Connection::create(QObject *parent)
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().toUtf8().constData())) {
qCWarning(KWIN_LIBINPUT) << "Failed to assign seat" << LogindIntegration::self()->seat();
delete s_context;
s_context = nullptr;
return nullptr;
Expand Down

0 comments on commit ddda524

Please sign in to comment.