Changeset View
Changeset View
Standalone View
Standalone View
libinput/connection.cpp
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 125 | { | |||
---|---|---|---|---|---|
132 | if (!s_context) { | 132 | if (!s_context) { | ||
133 | s_context = new Context(s_udev); | 133 | s_context = new Context(s_udev); | ||
134 | if (!s_context->isValid()) { | 134 | if (!s_context->isValid()) { | ||
135 | qCWarning(KWIN_LIBINPUT) << "Failed to create context from udev"; | 135 | qCWarning(KWIN_LIBINPUT) << "Failed to create context from udev"; | ||
136 | delete s_context; | 136 | delete s_context; | ||
137 | s_context = nullptr; | 137 | s_context = nullptr; | ||
138 | return nullptr; | 138 | return nullptr; | ||
139 | } | 139 | } | ||
140 | // TODO: don't hardcode seat name | 140 | if (!s_context->assignSeat(LogindIntegration::self()->seat())) { | ||
141 | if (!s_context->assignSeat("seat0")) { | 141 | qCWarning(KWIN_LIBINPUT) << "Failed to assign seat"; | ||
142 | qCWarning(KWIN_LIBINPUT) << "Failed to assign seat seat0"; | | |||
143 | delete s_context; | 142 | delete s_context; | ||
144 | s_context = nullptr; | 143 | s_context = nullptr; | ||
145 | return nullptr; | 144 | return nullptr; | ||
146 | } | 145 | } | ||
147 | } | 146 | } | ||
148 | Connection::createThread(); | 147 | Connection::createThread(); | ||
149 | s_self = new Connection(s_context); | 148 | s_self = new Connection(s_context); | ||
150 | s_self->moveToThread(s_thread); | 149 | s_self->moveToThread(s_thread); | ||
▲ Show 20 Lines • Show All 525 Lines • Show Last 20 Lines |