fix(ags bar): make bar disappear frl on fullscreen

This commit is contained in:
matt1432 2023-10-08 00:59:43 -04:00
parent 72df640608
commit 36aa50547c

View file

@ -21,8 +21,7 @@ export const Revealer = params => Box({
Utils.execAsync('hyprctl activewindow -j') Utils.execAsync('hyprctl activewindow -j')
.then(result => { .then(result => {
let client = JSON.parse(result); let client = JSON.parse(result);
if (client.fullscreen === Revealed.value) return; if (client.fullscreen !== Revealed.value) {
Revealed.value = client.fullscreen; Revealed.value = client.fullscreen;
if (Revealed.value) { if (Revealed.value) {
@ -34,6 +33,7 @@ export const Revealer = params => Box({
else { else {
self.revealChild = true; self.revealChild = true;
} }
}
}).catch(print); }).catch(print);
}]], }]],