diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | 10 |
1 files changed, 10 insertions, 0 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 | } |
