Skip to content

Commit

Permalink
[lipstick] Query the current display state on startup. Fixes JB#44052
Browse files Browse the repository at this point in the history
  • Loading branch information
adenexter committed Dec 14, 2018
1 parent 58e4ffa commit 7f8a13b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/qmsystem2/qmdisplaystate.cpp
Expand Up @@ -66,7 +66,13 @@ void QmDisplayState::connectNotify(const QMetaMethod &signal) {
MCE_SIGNAL_IF,
MCE_DISPLAY_SIG,
priv,
SLOT(slotDisplayStateChanged(const QString&)));
SLOT(slotDisplayStateChanged(QString)));

QDBusConnection::systemBus().callWithCallback(
QDBusMessage::createMethodCall(
MCE_SERVICE, MCE_REQUEST_PATH, MCE_REQUEST_IF, MCE_DISPLAY_STATUS_GET),
priv,
SLOT(slotDisplayStateChanged(QString)));
}
priv->connectCount[SIGNAL_DISPLAY_STATE]++;
}
Expand All @@ -87,7 +93,7 @@ void QmDisplayState::disconnectNotify(const QMetaMethod &signal) {
MCE_SIGNAL_IF,
MCE_DISPLAY_SIG,
priv,
SLOT(slotDisplayStateChanged(const QString&)));
SLOT(slotDisplayStateChanged(QString)));
}
}
}
Expand Down

0 comments on commit 7f8a13b

Please sign in to comment.