Possible fix for screen lockup after sleep (lock)
This commit is contained in:
parent
0504bcc02e
commit
b7da25a6a0
1 changed files with 12 additions and 1 deletions
11
shell.qml
11
shell.qml
|
|
@ -16,6 +16,7 @@ Scope {
|
||||||
|
|
||||||
property alias appLauncherPanel: appLauncherPanel
|
property alias appLauncherPanel: appLauncherPanel
|
||||||
property var notificationHistoryWin: notificationHistoryWin
|
property var notificationHistoryWin: notificationHistoryWin
|
||||||
|
property bool pendingReload: false
|
||||||
|
|
||||||
function updateVolume(vol) {
|
function updateVolume(vol) {
|
||||||
volume = vol;
|
volume = vol;
|
||||||
|
|
@ -41,6 +42,12 @@ Scope {
|
||||||
|
|
||||||
LockScreen {
|
LockScreen {
|
||||||
id: lockScreen
|
id: lockScreen
|
||||||
|
onLockedChanged: {
|
||||||
|
if (!locked && root.pendingReload) {
|
||||||
|
reloadTimer.restart();
|
||||||
|
root.pendingReload = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationServer {
|
NotificationServer {
|
||||||
|
|
@ -105,7 +112,11 @@ Scope {
|
||||||
Connections {
|
Connections {
|
||||||
target: Quickshell
|
target: Quickshell
|
||||||
function onScreensChanged() {
|
function onScreensChanged() {
|
||||||
|
if (lockScreen.locked) {
|
||||||
|
pendingReload = true;
|
||||||
|
} else {
|
||||||
reloadTimer.restart();
|
reloadTimer.restart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue