fix(ags): hide current window name when unfocused
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
17b356dca1
commit
88489d4a43
1 changed files with 3 additions and 4 deletions
|
@ -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 !== '';
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue