HyprlandService: fix workspace detection (fixes #509)

Autoformat
This commit is contained in:
lysec
2025-10-17 13:13:23 +02:00
parent 34c4292fce
commit 371ddbc776
2 changed files with 15 additions and 13 deletions
+13 -13
View File
@@ -251,23 +251,23 @@ Variants {
property int hoverCount: 0
onHoverCountChanged: {
if (hoverCount > 0) {
resumeTimer.stop()
NotificationService.pauseTimeout(notificationId)
} else {
resumeTimer.start()
}
if (hoverCount > 0) {
resumeTimer.stop()
NotificationService.pauseTimeout(notificationId)
} else {
resumeTimer.start()
}
}
Timer {
id: resumeTimer
interval: 50
repeat: false
onTriggered: {
if (hoverCount === 0) {
NotificationService.resumeTimeout(notificationId)
}
id: resumeTimer
interval: 50
repeat: false
onTriggered: {
if (hoverCount === 0) {
NotificationService.resumeTimeout(notificationId)
}
}
}
// Right-click to dismiss
+2
View File
@@ -352,6 +352,8 @@ Item {
target: Hyprland
enabled: initialized
function onRawEvent(event) {
Hyprland.refreshWorkspaces()
safeUpdateWorkspaces()
workspaceChanged()
updateTimer.restart()