Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/core/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include "usermodel.h"

#include <rhi/qrhi.h>

#include <QDBusConnection>
#include <QDBusInterface>
#ifndef DISABLE_DDM
# include "lockscreen.h"
#endif
Expand Down Expand Up @@ -1635,6 +1638,11 @@ void Helper::showLockScreen()
m_lockScreen->lock();

setWorkspaceVisible(false);

// send DDM switch to greeter mode
// FIXME: DDM and Treeland should listen to the lock signal of login1
QDBusInterface interface("org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager/Seat0", "org.freedesktop.DisplayManager.Seat", QDBusConnection::systemBus());
interface.asyncCall("SwitchToGreeter");
}

WSeat *Helper::seat() const
Expand Down