diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/bar.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/bar.tsx b/modules/bar.tsx index dd576c3..9801f13 100644 --- a/modules/bar.tsx +++ b/modules/bar.tsx @@ -51,12 +51,14 @@ const ActiveWindow = () => ( className="icon" setup={self => hookFocusedClientProp(self, "class", c => { - self.label = c ? getAppCategoryIcon(c.class) : "desktop_windows"; + self.label = c?.class ? getAppCategoryIcon(c.class) : "desktop_windows"; }) } /> <label - setup={self => hookFocusedClientProp(self, "title", c => (self.label = c ? ellipsize(c.title) : "Desktop"))} + setup={self => + hookFocusedClientProp(self, "title", c => (self.label = c?.title ? ellipsize(c.title) : "Desktop")) + } /> </box> ); |