From 0eacbc0ea2b50868d1127bc9a5265d4352632e58 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sat, 25 Jan 2025 16:54:43 +1100
Subject: media: make popdown window

---
 src/modules/bar.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/modules/bar.tsx')

diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx
index 60471ca..c7f168e 100644
--- a/src/modules/bar.tsx
+++ b/src/modules/bar.tsx
@@ -87,9 +87,9 @@ const MediaPlaying = () => {
         players.lastPlayer ? `${players.lastPlayer.title} - ${players.lastPlayer.artist}` : fallback;
     return (
         <button
-            onClick={(_, event) => {
+            onClick={(self, event) => {
                 if (event.button === Astal.MouseButton.PRIMARY) {
-                    // TODO: media panel
+                    togglePopup(self, event, "media");
                 } else if (event.button === Astal.MouseButton.SECONDARY) players.lastPlayer?.play_pause();
                 else if (event.button === Astal.MouseButton.MIDDLE) players.lastPlayer?.raise();
             }}
-- 
cgit v1.2.3-freya

