From 3c37bcf9fbf81888ce1462792fe034ed5fc8bc76 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Tue, 14 Feb 2023 19:05:37 +0200 Subject: [PATCH] Process the position changes event --- src/cmus/query.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmus/query.rs b/src/cmus/query.rs index 39a58cb..623797e 100644 --- a/src/cmus/query.rs +++ b/src/cmus/query.rs @@ -52,6 +52,8 @@ impl CmusQueryResponse { if track != other_track { if track.status != other_track.status { events.push(CmusEvent::StatusChanged(other_track.status)); + } else if track.position != other_track.position { + events.push(CmusEvent::PositionChanged(other_track.position)); } else { events.push(CmusEvent::TrackChanged(other_track)); }