From 4804128345dc9baa243bb27acccc9b3da56c068c Mon Sep 17 00:00:00 2001 From: chenyuanbo Date: Fri, 27 Nov 2026 14:08:16 +0800 Subject: [PATCH] fix: gate Greeter account entry on the user notice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Run the registered account entry task when reusing the Greeter or switching users from its password page. 2. Keep the login controls hidden while the task is pending and repaint the Greeter background before showing another account entry page. 3. Use login1 activity transitions to keep initial Greeter activation on the existing pre-greeter path. Log: Show the user notice before the account entry page. Influence: 1. Check initial login and login after logout with the notice enabled. 2. Check switching users from a locked desktop to an existing Greeter. 3. Check switching users from the password page with multiple displays. fix: 在显示 Greeter 账号输入页前运行用户须知 1. 复用 Greeter 或从 Greeter 密码页切换用户时运行已注册的任务。 2. 等待任务期间隐藏登录控件并重绘背景,结束后显示账号输入页。 3. 根据 login1 会话激活变化识别复用,新 Greeter 继续走 pre-greeter。 Influence: 1. 验证开机登录和注销后登录时的须知显示顺序。 2. 验证从桌面锁屏切回复用 Greeter 的流程。 3. 验证多屏下从 Greeter 密码页返回账号输入页的流程。 Log: 在账号输入页显示前展示用户须知。 PMS: BUG-384345 --- CMakeLists.txt | 4 + files/select-account-entry-task | 21 +++ src/app/lightdm-deepin-greeter.cpp | 8 +- src/lightdm-deepin-greeter/greeterworker.cpp | 69 +++++++++- src/lightdm-deepin-greeter/greeterworker.h | 18 +++ src/lightdm-deepin-greeter/logincontent.cpp | 131 +++++++++++++++++++ src/lightdm-deepin-greeter/logincontent.h | 23 +++- src/lightdm-deepin-greeter/loginwindow.cpp | 37 +++++- src/lightdm-deepin-greeter/loginwindow.h | 3 +- src/session-widgets/lockcontent.cpp | 21 +-- src/session-widgets/lockcontent.h | 1 + 11 files changed, 320 insertions(+), 16 deletions(-) create mode 100644 files/select-account-entry-task diff --git a/CMakeLists.txt b/CMakeLists.txt index e147c0a40..080e0c156 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -447,6 +447,10 @@ install(PROGRAMS files/dde-lock-loader-wrapper DESTINATION ${CMAKE_INSTALL_BINDI # 指定greeter,优先级最低,允许被其他应用以更高的配置文件覆盖 install(FILES files/50-deepin.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/lightdm/lightdm.conf.d) install(PROGRAMS files/pre-greeter DESTINATION ${CMAKE_INSTALL_DATADIR}/dde-session-shell/greeters.d) +if(NOT DISABLE_DSS_SNIPE) + install(PROGRAMS files/select-account-entry-task + DESTINATION ${CMAKE_INSTALL_DATADIR}/dde-session-shell/greeters.d) +endif() if (DISABLE_DSS_SNIPE) file(GLOB QM_FILES "translations/*.qm") diff --git a/files/select-account-entry-task b/files/select-account-entry-task new file mode 100644 index 000000000..a5b9eb89d --- /dev/null +++ b/files/select-account-entry-task @@ -0,0 +1,21 @@ +#!/bin/bash + +config_dir=/usr/share/dde-session-shell/greeters.d/account-entry.conf.d +shopt -s nullglob + +cd "$config_dir" || exit 1 +files=(*.json) +if (( ${#files[@]} == 0 )); then + exit 1 +fi + +while IFS= read -r -d '' file; do + checker=$(jq -er '.NeedExecScript | strings | select(startswith("/"))' "./$file") || continue + program=$(jq -er '.ExecPath | strings | select(startswith("/"))' "./$file") || continue + if [[ -f "$checker" && -x "$checker" && -f "$program" && -x "$program" ]] && "$checker" >&2; then + printf '%s\n' "$program" + exit 0 + fi +done < <(printf '%s\0' "${files[@]}" | LC_ALL=C sort -z -nr) + +exit 1 diff --git a/src/app/lightdm-deepin-greeter.cpp b/src/app/lightdm-deepin-greeter.cpp index c72fee2bd..4d14498b2 100644 --- a/src/app/lightdm-deepin-greeter.cpp +++ b/src/app/lightdm-deepin-greeter.cpp @@ -143,6 +143,8 @@ int main(int argc, char* argv[]) // 初始化LoginContent LoginContent::instance()->init(model); + QObject::connect(worker, &GreeterWorker::accountEntryActivated, LoginContent::instance(), &LoginContent::reactivateAccountEntry); + QObject::connect(worker, &GreeterWorker::greeterActiveChanged, LoginContent::instance(), &LoginContent::setGreeterActive); QObject::connect(LoginContent::instance(), &LoginContent::requestSwitchToUser, worker, &GreeterWorker::switchToUser); QObject::connect(LoginContent::instance(), &LoginContent::requestSetLayout, worker, &GreeterWorker::setKeyboardLayout); QObject::connect(LoginContent::instance(), &LoginContent::requestCheckAccount, worker, &GreeterWorker::checkAccount); @@ -157,6 +159,10 @@ int main(int argc, char* argv[]) QObject::connect(LoginContent::instance(), &LockContent::passwordChangeUserIsActive, worker, &GreeterWorker::restartResetSessionTimer); QObject::connect(LoginContent::instance(), &LoginContent::noPasswordLoginChanged, worker, &GreeterWorker::onNoPasswordLoginChanged); +#ifdef ENABLE_DSS_SNIPE + worker->watchSessionActivity(); +#endif + // 根据屏幕创建全屏背景窗口 auto createFrame = [&](QPointer screen, int count) -> QWidget * { LoginWindow *loginFrame = new LoginWindow(model); @@ -170,7 +176,7 @@ int main(int argc, char* argv[]) } loginFrame->setScreen(screen, count <= 0); QObject::connect(worker, &GreeterWorker::requestUpdateBackground, loginFrame, &LoginWindow::updateBackground); - loginFrame->setVisible(model->visible()); + loginFrame->updateLoginVisibility(); return loginFrame; }; diff --git a/src/lightdm-deepin-greeter/greeterworker.cpp b/src/lightdm-deepin-greeter/greeterworker.cpp index 9f05810c3..9fb6f31f1 100644 --- a/src/lightdm-deepin-greeter/greeterworker.cpp +++ b/src/lightdm-deepin-greeter/greeterworker.cpp @@ -15,6 +15,7 @@ #include "signal_bridge.h" #include +#include #include #ifndef ENABLE_DSS_SNIPE @@ -263,7 +264,12 @@ void GreeterWorker::initConnections() }); connect(m_login1Inter, &DBusLogin1Manager::SessionRemoved, this, [this] { qCInfo(DDE_SHELL) << "DBus login1 manager session removed"; - if (m_model->updateCurrentUser(m_lockInter->CurrentUser())) { +#ifdef ENABLE_DSS_SNIPE + const bool preserveAccountInput = !m_model->userlistVisible() && getDconfigValue("loginPromptInput", false).toBool(); +#else + constexpr bool preserveAccountInput = false; +#endif + if (!preserveAccountInput && m_model->updateCurrentUser(m_lockInter->CurrentUser())) { m_model->updateAuthState(AT_All, AS_Cancel, "Cancel"); destroyAuthentication(m_account); if (!m_model->currentUser()->isNoPasswordLogin()) { @@ -409,6 +415,67 @@ void GreeterWorker::initConnections() connect(&SignalBridge::ref(), &SignalBridge::requestSendExtraInfo, this, &GreeterWorker::sendExtraInfo); } +#ifdef ENABLE_DSS_SNIPE +void GreeterWorker::watchSessionActivity() +{ + if (!m_login1SessionSelf || !m_login1SessionSelf->isValid()) + return; + + if (!QDBusConnection::systemBus().connect(m_login1SessionSelf->service(), m_login1SessionSelf->path(), + QStringLiteral("org.freedesktop.DBus.Properties"), QStringLiteral("PropertiesChanged"), + this, SLOT(sessionPropertiesChanged(QString,QVariantMap,QStringList)))) { + qCWarning(DDE_SHELL) << "Failed to watch Greeter session activity" << m_login1SessionSelf->path(); + return; + } + + readSessionActivity(); +} + +void GreeterWorker::readSessionActivity() +{ + // Read the current value directly. The asynchronous session proxy can emit + // ActiveChanged when a property read completes as well as on D-Bus changes. + auto request = QDBusMessage::createMethodCall(m_login1SessionSelf->service(), m_login1SessionSelf->path(), + QStringLiteral("org.freedesktop.DBus.Properties"), QStringLiteral("Get")); + request << QStringLiteral("org.freedesktop.login1.Session") << QStringLiteral("Active"); + const QDBusReply reply = QDBusConnection::systemBus().call(request); + if (reply.isValid()) + updateSessionActivity(reply.value().variant().toBool()); + else + qCWarning(DDE_SHELL) << "Failed to read Greeter session activity:" << reply.error(); +} + +void GreeterWorker::sessionPropertiesChanged(const QString &interface, const QVariantMap &changed, + const QStringList &invalidated) +{ + if (interface != QStringLiteral("org.freedesktop.login1.Session")) + return; + + const QString active = QStringLiteral("Active"); + const auto value = changed.constFind(active); + if (value != changed.cend()) + updateSessionActivity(value->toBool()); + else if (invalidated.contains(active)) + readSessionActivity(); +} + +void GreeterWorker::updateSessionActivity(bool active) +{ + if (m_sessionActive == active) + return; + + const bool reactivated = active && m_sessionActive == false && m_sessionWasActive; + m_sessionActive = active; + m_sessionWasActive |= active; + qCInfo(DDE_SHELL) << "Greeter login1 session active:" << active << "reactivated:" << reactivated; + + if (reactivated && !m_model->userlistVisible() && getDconfigValue("loginPromptInput", false).toBool()) + emit accountEntryActivated(); + else + emit greeterActiveChanged(active); +} +#endif + void GreeterWorker::initData() { if (isSecurityEnhanceOpen()) { diff --git a/src/lightdm-deepin-greeter/greeterworker.h b/src/lightdm-deepin-greeter/greeterworker.h index 12e81500c..8948bf44d 100644 --- a/src/lightdm-deepin-greeter/greeterworker.h +++ b/src/lightdm-deepin-greeter/greeterworker.h @@ -22,6 +22,10 @@ using SoundThemePlayerInter = com::deepin::api::SoundThemePlayer; #endif +#ifdef ENABLE_DSS_SNIPE +#include +#endif + class GreeterPasswordChange; class GreeterWorker : public Auth::AuthInterface @@ -40,8 +44,13 @@ class GreeterWorker : public Auth::AuthInterface void switchToUser(std::shared_ptr user) override; bool isSecurityEnhanceOpen(); +#ifdef ENABLE_DSS_SNIPE + void watchSessionActivity(); +#endif signals: + void accountEntryActivated(); + void greeterActiveChanged(bool active); void requestUpdateBackground(const QString &path); void requestShowPrompt(const QString &prompt); void requestShowMessage(const QString &message); @@ -65,6 +74,10 @@ public slots: void onNoPasswordLoginChanged(const QString &account, bool noPassword); private slots: +#ifdef ENABLE_DSS_SNIPE + void sessionPropertiesChanged(const QString &interface, const QVariantMap &changed, + const QStringList &invalidated); +#endif void onAuthStateChanged(const int type, const int state, const QString &message); void onReceiptChanged(bool state); void onCurrentUserChanged(const std::shared_ptr &user); @@ -102,6 +115,11 @@ private slots: void updatePasswordExpiredStateBySPName(const QString &account); #ifdef ENABLE_DSS_SNIPE void prepareShutdownSound(); + void readSessionActivity(); + void updateSessionActivity(bool active); + + std::optional m_sessionActive; + bool m_sessionWasActive = false; #endif private: diff --git a/src/lightdm-deepin-greeter/logincontent.cpp b/src/lightdm-deepin-greeter/logincontent.cpp index 429ed9b22..a756bd5de 100644 --- a/src/lightdm-deepin-greeter/logincontent.cpp +++ b/src/lightdm-deepin-greeter/logincontent.cpp @@ -6,6 +6,11 @@ #include "logintipswindow.h" #include "sessionwidget.h" #include "controlwidget.h" +#include "dconfig_helper.h" + +#include +#include +#include LoginContent::LoginContent(QWidget *parent) : LockContent(parent) @@ -53,6 +58,129 @@ void LoginContent::init(SessionBaseModel *model) connect(m_model, &SessionBaseModel::tipsShowed, this, &LoginContent::popTipsFrame); } +void LoginContent::onSwitchUserRequested() +{ +#ifdef ENABLE_DSS_SNIPE + if (beginAccountEntry()) + return; +#endif + LockContent::onSwitchUserRequested(); +} + +void LoginContent::setVisible(bool visible) +{ + // FullScreenBackground can show the shared content again while moving it between screens. + LockContent::setVisible(visible && !accountEntryBlocksLogin()); +} + +bool LoginContent::usesAccountEntry() const +{ + if (m_model->userlistVisible() || !m_model->findUserByName(QStringLiteral("..."))) + return false; + + const QString shellConfig = QStringLiteral("org.deepin.dde.session-shell"); + return DConfigHelper::instance()->getConfig(shellConfig, shellConfig, {}, + QStringLiteral("loginPromptInput"), false).toBool(); +} + +bool LoginContent::beginAccountEntry() +{ + if (!m_greeterActive || m_taskProcess || m_startingAccountEntry) + return true; + + if (!usesAccountEntry()) + return false; + + const QDir configs(QStringLiteral("/usr/share/dde-session-shell/greeters.d/account-entry.conf.d")); + if (configs.entryList({QStringLiteral("*.json")}, QDir::Files).isEmpty()) { + enterAccountInput(); + emit accountEntryVisibilityChanged(); + } else { + startAccountEntryTask(QStringLiteral("/usr/share/dde-session-shell/greeters.d/select-account-entry-task"), true); + } + return true; +} + +void LoginContent::enterAccountInput() +{ + const auto accountEntryUser = m_model->findUserByName(QStringLiteral("...")); + if (!accountEntryUser) + return; + + QScopedValueRollback starting(m_startingAccountEntry, true); + if (m_model->currentUser() != accountEntryUser) + emit requestSwitchToUser(accountEntryUser); + m_model->setCurrentModeState(SessionBaseModel::ModeStatus::PasswordMode); + if (m_showTipsWidget && m_loginTipsWindow->isValid()) + pushTipsFrame(); + else + pushPasswordFrame(); +} + +void LoginContent::reactivateAccountEntry() +{ + m_greeterActive = true; + if (m_taskProcess) + m_accountEntryPending = true; + else if (beginAccountEntry()) + return; + emit accountEntryVisibilityChanged(); +} + +void LoginContent::setGreeterActive(bool active) +{ + m_greeterActive = active; + if (!active) { + m_accountEntryPending = false; + if (m_taskProcess && m_taskProcess->processChannelMode() == QProcess::ForwardedChannels) + m_taskProcess->kill(); + } + emit accountEntryVisibilityChanged(); +} + +void LoginContent::startAccountEntryTask(const QString &program, bool selecting) +{ + auto *process = new QProcess(this); + process->setProgram(program); + process->setProcessChannelMode(selecting ? QProcess::ForwardedErrorChannel : QProcess::ForwardedChannels); + m_taskProcess = process; + + const auto finish = [this, process, selecting](int code, QProcess::ExitStatus status) { + m_taskProcess = nullptr; + process->deleteLater(); + if (m_greeterActive && m_accountEntryPending) { + m_accountEntryPending = false; + if (!beginAccountEntry()) + emit accountEntryVisibilityChanged(); + return; + } else if (m_greeterActive && selecting && status == QProcess::NormalExit && code == 0) { + const QString task = QString::fromUtf8(process->readAllStandardOutput()).trimmed(); + if (QDir::isAbsolutePath(task)) { + startAccountEntryTask(task, false); + return; + } + } + + if (m_greeterActive) + enterAccountInput(); + emit accountEntryVisibilityChanged(); + }; + connect(process, &QProcess::finished, this, [process, selecting, finish](int code, QProcess::ExitStatus status) { + if (status != QProcess::NormalExit || code > (selecting ? 1 : 0)) + qCWarning(DDE_SHELL) << "Account entry process exited" << process->program() << status << code; + finish(code, status); + }); + connect(process, &QProcess::errorOccurred, this, [process, finish](QProcess::ProcessError error) { + if (error == QProcess::FailedToStart) { + qCWarning(DDE_SHELL) << "Failed to start account entry process:" << process->program() << process->errorString(); + finish(-1, QProcess::CrashExit); + } + }); + + emit accountEntryVisibilityChanged(); + process->start(); +} + void LoginContent::onCurrentUserChanged(std::shared_ptr user) { if (!user.get()) @@ -64,6 +192,9 @@ void LoginContent::onCurrentUserChanged(std::shared_ptr user) void LoginContent::onStatusChanged(SessionBaseModel::ModeStatus status) { + if (m_taskProcess) + return; + qCInfo(DDE_SHELL) << "Status changed, status" << status << ", current status: " << m_currentModeStatus; switch (status) { case SessionBaseModel::ModeStatus::SessionMode: diff --git a/src/lightdm-deepin-greeter/logincontent.h b/src/lightdm-deepin-greeter/logincontent.h index 0c7926847..73dda4d30 100644 --- a/src/lightdm-deepin-greeter/logincontent.h +++ b/src/lightdm-deepin-greeter/logincontent.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2011 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -8,6 +8,7 @@ #include "lockcontent.h" #include "userswiththesamename.h" +class QProcess; class SessionWidget; class LoginTipsWindow; @@ -21,12 +22,32 @@ class LoginContent : public LockContent void init(SessionBaseModel *model); void onCurrentUserChanged(std::shared_ptr user) override; void onStatusChanged(SessionBaseModel::ModeStatus status) override; + void reactivateAccountEntry(); + void setVisible(bool visible) override; + bool usesAccountEntry() const; + void setGreeterActive(bool active); + bool accountEntryBlocksLogin() const { return m_taskProcess || m_startingAccountEntry || !m_greeterActive; } void pushSessionFrame(); void pushTipsFrame(); void popTipsFrame(); void showUsersWithTheSameName(const QString &nativeUserName, const QString &doMainAccountDetail); +signals: + void accountEntryVisibilityChanged(); + +protected: + void onSwitchUserRequested() override; + private: + bool beginAccountEntry(); + void enterAccountInput(); + void startAccountEntryTask(const QString &program, bool selecting); + + QProcess *m_taskProcess = nullptr; + bool m_greeterActive = true; + bool m_accountEntryPending = false; + bool m_startingAccountEntry = false; + SessionWidget *m_sessionFrame; LoginTipsWindow *m_loginTipsWindow; bool m_showTipsWidget = true; diff --git a/src/lightdm-deepin-greeter/loginwindow.cpp b/src/lightdm-deepin-greeter/loginwindow.cpp index 95636acc0..f2655851e 100644 --- a/src/lightdm-deepin-greeter/loginwindow.cpp +++ b/src/lightdm-deepin-greeter/loginwindow.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2011 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -25,7 +25,8 @@ LoginWindow::LoginWindow(SessionBaseModel *const model, QWidget *parent) repaint(); }); - connect(model, &SessionBaseModel::visibleChanged, this, &LoginWindow::setVisible); + connect(model, &SessionBaseModel::visibleChanged, this, &LoginWindow::updateLoginVisibility); + connect(LoginContent::instance(), &LoginContent::accountEntryVisibilityChanged, this, &LoginWindow::updateLoginVisibility); connect(model, &SessionBaseModel::authFinished, this, [this](bool successful) { setEnterEnable(!successful); @@ -43,12 +44,36 @@ LoginWindow::~LoginWindow() } } +void LoginWindow::updateLoginVisibility() +{ + auto *login = LoginContent::instance(); + const bool blocked = login->accountEntryBlocksLogin(); + const bool ownsContent = login->parentWidget() == this; + if (blocked && ownsContent) { + login->hide(); + if (!m_model->isUseWayland() && windowHandle()) + windowHandle()->setKeyboardGrabEnabled(false); + } + + const bool showBackground = m_model->visible() && (!blocked || login->usesAccountEntry()); + setVisible(showBackground); + if (blocked && showBackground) { + // Paint while the Greeter still has a mapped background, so returning to its VT shows no stale form. + repaint(); + } else if (showBackground && ownsContent && !m_model->isBlackMode()) { + login->show(); + } + + if (ownsContent) + m_model->setHasVirtualKB(showBackground && !blocked); +} + void LoginWindow::showEvent(QShowEvent *event) { FullScreenBackground::showEvent(event); //greeter界面显示时,需要调用虚拟键盘 - m_model->setHasVirtualKB(true); + m_model->setHasVirtualKB(!LoginContent::instance()->accountEntryBlocksLogin()); } void LoginWindow::hideEvent(QHideEvent *event) @@ -61,6 +86,12 @@ void LoginWindow::hideEvent(QHideEvent *event) bool LoginWindow::event(QEvent *event) { + if ((event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease) + && LoginContent::instance()->accountEntryBlocksLogin()) { + event->accept(); + return true; + } + if (event->type() == QEvent::KeyRelease) { auto *keyEvent = dynamic_cast(event); switch (keyEvent->key()) { diff --git a/src/lightdm-deepin-greeter/loginwindow.h b/src/lightdm-deepin-greeter/loginwindow.h index e81332c27..5cf02d3fb 100644 --- a/src/lightdm-deepin-greeter/loginwindow.h +++ b/src/lightdm-deepin-greeter/loginwindow.h @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2011 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -22,6 +22,7 @@ class LoginWindow : public FullScreenBackground public: explicit LoginWindow(SessionBaseModel *const model, QWidget *parent = nullptr); ~LoginWindow(); + void updateLoginVisibility(); signals: void requestSwitchToUser(std::shared_ptr user); diff --git a/src/session-widgets/lockcontent.cpp b/src/session-widgets/lockcontent.cpp index 126c805e2..4659135c5 100644 --- a/src/session-widgets/lockcontent.cpp +++ b/src/session-widgets/lockcontent.cpp @@ -147,18 +147,21 @@ void LockContent::initUI() } } +void LockContent::onSwitchUserRequested() +{ + if (!m_model->userlistVisible() && m_model->currentUser()->name() == "...") { + emit requestSwitchToUser(m_model->currentUser()); + m_model->setCurrentModeState(SessionBaseModel::ModeStatus::PasswordMode); + } else { + m_model->setCurrentModeState(SessionBaseModel::ModeStatus::UserMode); + emit requestEndAuthentication(m_model->currentUser()->name(), AuthCommon::AT_All); + } +} + void LockContent::initConnections() { connect(m_model, &SessionBaseModel::currentUserChanged, this, &LockContent::onCurrentUserChanged); - connect(m_controlWidget, &ControlWidget::requestSwitchUser, this, [this] { - if (!m_model->userlistVisible() && m_model->currentUser()->name() == "...") { - emit requestSwitchToUser(m_model->currentUser()); - m_model->setCurrentModeState(SessionBaseModel::ModeStatus::PasswordMode); - } else { - m_model->setCurrentModeState(SessionBaseModel::ModeStatus::UserMode); - emit requestEndAuthentication(m_model->currentUser()->name(), AuthCommon::AT_All); - } - }); + connect(m_controlWidget, &ControlWidget::requestSwitchUser, this, &LockContent::onSwitchUserRequested); connect(m_controlWidget, &ControlWidget::requestShutdown, this, [this] { m_model->setCurrentModeState(SessionBaseModel::ModeStatus::PowerMode); }); diff --git a/src/session-widgets/lockcontent.h b/src/session-widgets/lockcontent.h index 2dd0dbfaa..7ec00b918 100644 --- a/src/session-widgets/lockcontent.h +++ b/src/session-widgets/lockcontent.h @@ -89,6 +89,7 @@ public slots: bool event(QEvent *event) Q_DECL_OVERRIDE; protected: + virtual void onSwitchUserRequested(); void toggleVirtualKB(); void showModule(const QString &name, const bool callShowForce); void updateVirtualKBPosition();