!105 修复锁屏时两次调用blockGlobalShortcuts的问题
Merge pull request !105 from liudunfa/openkylin/nile
This commit is contained in:
commit
9fbd241f2c
|
@ -623,7 +623,11 @@ void DbusUpperInterface::emitLockState(bool val)
|
||||||
{
|
{
|
||||||
qDebug() << "emitLockState state = " << val;
|
qDebug() << "emitLockState state = " << val;
|
||||||
|
|
||||||
|
if (val != m_bBlockShortcutState) {
|
||||||
m_kglobalHelper->blockShortcut(val);
|
m_kglobalHelper->blockShortcut(val);
|
||||||
|
m_bBlockShortcutState = val;
|
||||||
|
qDebug() << " block all shortcut " << "blockShortcut states = " << m_bBlockShortcutState;
|
||||||
|
}
|
||||||
|
|
||||||
QDBusMessage message;
|
QDBusMessage message;
|
||||||
if (val) {
|
if (val) {
|
||||||
|
|
|
@ -428,6 +428,7 @@ private:
|
||||||
QByteArray pubKey, priKey;
|
QByteArray pubKey, priKey;
|
||||||
KglobalAccelHelper *m_kglobalHelper = nullptr;
|
KglobalAccelHelper *m_kglobalHelper = nullptr;
|
||||||
LibinputSwitchEvent *m_libinputSwitchEvent = nullptr;
|
LibinputSwitchEvent *m_libinputSwitchEvent = nullptr;
|
||||||
|
bool m_bBlockShortcutState = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // DBUSUPPERINTERFACE_H
|
#endif // DBUSUPPERINTERFACE_H
|
||||||
|
|
Loading…
Reference in New Issue