diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Services')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | 10 | ||||
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/WallpaperSelector.qml | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml index 6dbff134..cd4ed125 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | |||
| @@ -74,6 +74,10 @@ Singleton { | |||
| 74 | eventWindowFocusTimestampChanged(event.WindowFocusTimestampChanged); | 74 | eventWindowFocusTimestampChanged(event.WindowFocusTimestampChanged); |
| 75 | else if (event.CastsChanged) | 75 | else if (event.CastsChanged) |
| 76 | root.casts = event.CastsChanged.casts | 76 | root.casts = event.CastsChanged.casts |
| 77 | else if (event.CastStartedOrChanged) | ||
| 78 | eventCastStartedOrChanged(event.CastStartedOrChanged); | ||
| 79 | else if (event.CastStopped) | ||
| 80 | eventCastStopped(event.CastStopped); | ||
| 77 | else if (event.Ok && !eventStreamSocket.acked) { eventStreamSocket.acked = true; } | 81 | else if (event.Ok && !eventStreamSocket.acked) { eventStreamSocket.acked = true; } |
| 78 | else if (event.OverviewOpenedOrClosed) {} | 82 | else if (event.OverviewOpenedOrClosed) {} |
| 79 | else if (event.ConfigLoaded) {} | 83 | else if (event.ConfigLoaded) {} |
| @@ -203,4 +207,10 @@ Singleton { | |||
| 203 | return win; | 207 | return win; |
| 204 | }); | 208 | }); |
| 205 | } | 209 | } |
| 210 | function eventCastStartedOrChanged(data) { | ||
| 211 | root.casts = [...Array.from(root.casts).filter(cast => cast.stream_id !== data.cast.stream_id), data.cast]; | ||
| 212 | } | ||
| 213 | function eventCastStopped(data) { | ||
| 214 | root.casts = Array.from(root.casts).filter(cast => cast.stream_id !== data.stream_id); | ||
| 215 | } | ||
| 206 | } | 216 | } |
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/WallpaperSelector.qml b/accounts/gkleen@sif/shell/quickshell/Services/WallpaperSelector.qml index 3c524955..c71a9cca 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/WallpaperSelector.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/WallpaperSelector.qml | |||
| @@ -4,5 +4,5 @@ Custom.FileSelector { | |||
| 4 | id: root | 4 | id: root |
| 5 | 5 | ||
| 6 | directory: @wallpapers@ | 6 | directory: @wallpapers@ |
| 7 | epoch: 72000000 | 7 | epoch: 79200000 |
| 8 | } | 8 | } |
