fix(ags): hide current window name when unfocused
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-03-29 17:12:48 -04:00
parent 17b356dca1
commit 88489d4a43

View file

@ -18,10 +18,7 @@ export default () => Box({
const app = Applications
.query(Hyprland.active.client.class)[0];
if (app) {
self.icon = app.icon_name || '';
self.visible = Hyprland.active.client.title !== '';
}
self.icon = app?.icon_name || '';
}),
Separator(SPACING),
@ -32,4 +29,6 @@ export default () => Box({
label: Hyprland.active.client.bind('title'),
}),
],
}).hook(Hyprland.active.client, (self) => {
self.visible = Hyprland.active.client.title !== '';
});