diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-11 21:00:05 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-11 21:00:05 +1100 |
| commit | 30c0d0d9080561ad0c8f0200daea4c1eca637124 (patch) | |
| tree | 6540b81cf663556bd63a82c545647ce8874607f2 /src | |
| parent | refactor: astal widget type (diff) | |
| download | caelestia-shell-30c0d0d9080561ad0c8f0200daea4c1eca637124.tar.gz caelestia-shell-30c0d0d9080561ad0c8f0200daea4c1eca637124.tar.bz2 caelestia-shell-30c0d0d9080561ad0c8f0200daea4c1eca637124.zip | |
bar: fix null pointer error
Client workspaces can be null for some reason?
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/bar.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx index ae5cde9..ea953d7 100644 --- a/src/modules/bar.tsx +++ b/src/modules/bar.tsx @@ -146,7 +146,7 @@ const Workspace = ({ idx }: { idx: number }) => { const update = () => self.toggleClassName( "occupied", - hyprland.clients.some(c => c.workspace.id === wsId) + hyprland.clients.some(c => c.workspace?.id === wsId) ); self.hook(hyprland, "notify::focused-workspace", () => { |