diff --git a/devices/wim/config/ags/js/bar/buttons/current-window.js b/devices/wim/config/ags/js/bar/buttons/current-window.js index adff88d..2ae4b7c 100644 --- a/devices/wim/config/ags/js/bar/buttons/current-window.js +++ b/devices/wim/config/ags/js/bar/buttons/current-window.js @@ -16,8 +16,10 @@ export default () => Box({ connections: [[Hyprland.active.client, (self) => { const app = Applications.query(Hyprland.active.client.class)[0]; - self.icon = app.iconName; - self.visible = Hyprland.active.client.title !== ''; + if (app) { + self.icon = app.iconName; + self.visible = Hyprland.active.client.title !== ''; + } }]], }),