From 5f2febe5347097abc6b11e29ec227bfa62351073 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Thu, 16 Jan 2025 15:21:20 +1100
Subject: osds: lock keys popups

---
 app.tsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'app.tsx')

diff --git a/app.tsx b/app.tsx
index 287361f..be3231c 100644
--- a/app.tsx
+++ b/app.tsx
@@ -22,15 +22,14 @@ App.start({
 
         <Launcher />;
         <NotifPopups />;
-        Monitors.get_default().forEach(m => {
-            <Osds monitor={m} />;
-            <Bar monitor={m} />;
-        });
+        <Osds />;
+        Monitors.get_default().forEach(m => <Bar monitor={m} />);
 
         console.log("Caelestia started");
     },
     requestHandler(request, res) {
         if (request === "reload css") loadStyleAsync().catch(console.error);
+        else if (request.startsWith("show")) App.get_window(request.split(" ")[1])?.show();
         else if (request === "media play pause") Players.get_default().lastPlayer?.play_pause();
         else if (request === "media next") Players.get_default().lastPlayer?.next();
         else if (request === "media previous") Players.get_default().lastPlayer?.previous();
-- 
cgit v1.2.3-freya

