diff --git a/src/daemon/Display.cpp b/src/daemon/Display.cpp index 00faefb..a422c3d 100644 --- a/src/daemon/Display.cpp +++ b/src/daemon/Display.cpp @@ -210,17 +210,6 @@ namespace DDM { server->activateUser(user); } - void Display::activateUser(const QString &user) { - for (auto auth : m_auths) { - if (auth->user() == user) { - QString ttyString = VirtualTerminal::path(auth->tty()); - int vtFd = open(qPrintable(ttyString), O_RDWR | O_NOCTTY); - qDebug() << user << " ioctl " << ioctl(vtFd, VT_ACTIVATE, auth->tty()); - break; - } - } - } - bool Display::start() { return m_started || m_displayServer->start(); } diff --git a/src/daemon/Display.h b/src/daemon/Display.h index 827e643..4ec2849 100644 --- a/src/daemon/Display.h +++ b/src/daemon/Display.h @@ -66,7 +66,6 @@ namespace DDM { Seat *seat() const; void switchToUser(const QString &user); - void activateUser(const QString &user); QVector loginedSession() const { return m_auths; diff --git a/src/daemon/SingleWaylandDisplayServer.cpp b/src/daemon/SingleWaylandDisplayServer.cpp index 6aee8d4..a673c72 100644 --- a/src/daemon/SingleWaylandDisplayServer.cpp +++ b/src/daemon/SingleWaylandDisplayServer.cpp @@ -76,7 +76,6 @@ void SingleWaylandDisplayServer::activateUser(const QString &user) { } SocketWriter(greeter) << quint32(DaemonMessages::UserActivateMessage) << user; - displayPtr()->activateUser(user); // IOCTL activate } }