lid behavior watcher to lock session #115

Merged
zach merged 25 commits from lid-switch-behavior into main 2026-06-03 18:02:21 +02:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit deef85d10c - Show all commits
+1 -1
View File
2
@@ -57,7 +57,7 @@ void LidWatcher::tryConnect() {
QDBusConnection bus = QDBusConnection::systemBus();
const auto connected = bus.connect(
kLogin1Service,
QString(),
kLogin1Path,
kDBusPropertiesInterface,
"PropertiesChanged",
+5 -3
View File
@@ -31,15 +31,17 @@ class LidWatcher : public QObject {
private:
void tryConnect();
void queryLidState();
void onPropertiesChanged(const QString& interface,
const QVariantMap& changed,
const QStringList& invalidated);
QDBusServiceWatcher* m_watcher;
AramJonghu marked this conversation as resolved Outdated
Outdated
Review

extracted() is declared but never implemented in the .cpp file.

`extracted()` is declared but never implemented in the `.cpp` file.
QTimer* m_pollTimer;
bool m_available;
LidState m_state = Opened;
private Q_SLOTS:
void onPropertiesChanged(const QString& interface,
const QVariantMap& changed,
const QStringList& invalidated);
Q_SIGNALS:
void availableChanged();
void stateChanged();