fix(ags bar): stop workspace undefined error
This commit is contained in:
parent
b187a22e38
commit
8dd83e99ca
1 changed files with 3 additions and 2 deletions
|
@ -10,8 +10,9 @@ const wStyle = 'background: rgba(0, 0, 0, 0.5);';
|
|||
|
||||
|
||||
Hyprland.connect('changed', () => {
|
||||
Revealed.value = Hyprland.getWorkspace(Hyprland.active.workspace.id)
|
||||
.hasfullscreen;
|
||||
const workspace = Hyprland.getWorkspace(Hyprland.active.workspace.id);
|
||||
if (workspace)
|
||||
Revealed.value = workspace.hasfullscreen;
|
||||
});
|
||||
Hyprland.connect('fullscreen', (_, fullscreen) => Revealed.value = fullscreen);
|
||||
|
||||
|
|
Loading…
Reference in a new issue