From 7588a374e559b4f239fee1d2a752763e524c761e Mon Sep 17 00:00:00 2001 From: tux Date: Thu, 25 Sep 2025 13:27:51 +0530 Subject: [PATCH] fix: crashing when no focused client is available --- widgets/bar/workspace.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/widgets/bar/workspace.tsx b/widgets/bar/workspace.tsx index c751c61..159ea23 100644 --- a/widgets/bar/workspace.tsx +++ b/widgets/bar/workspace.tsx @@ -1,4 +1,4 @@ -import { createBinding, createComputed } from "ags"; +import { createBinding, createComputed, With } from "ags"; import { Gdk, Gtk } from "ags/gtk4"; import AstalHyprland from "gi://AstalHyprland"; @@ -48,8 +48,10 @@ export const FocusedClient = () => { const focused = createBinding(hyprland, "focusedClient"); return ( - -