fix(ags overview): turn off special workspace when clicking on other window
This commit is contained in:
parent
26e04f9626
commit
113bd1ae88
1 changed files with 4 additions and 2 deletions
|
@ -45,8 +45,10 @@ const Client = (client, active, clients) => Revealer({
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// close special workspace if one is opened
|
// close special workspace if one is opened
|
||||||
let currentActive = clients.find(c => c.class === Hyprland.active.client.class)
|
let activeAddress = Hyprland.active.client.address;
|
||||||
if (currentActive.workspace.id < 0)
|
let currentActive = clients.find(c => c.address === activeAddress)
|
||||||
|
|
||||||
|
if (currentActive && currentActive.workspace.id < 0)
|
||||||
execAsync(`hyprctl dispatch togglespecialworkspace ${String(currentActive.workspace.name)
|
execAsync(`hyprctl dispatch togglespecialworkspace ${String(currentActive.workspace.name)
|
||||||
.replace('special:', '')}`).catch(print);
|
.replace('special:', '')}`).catch(print);
|
||||||
execAsync(`hyprctl dispatch focuswindow address:${client.address}`)
|
execAsync(`hyprctl dispatch focuswindow address:${client.address}`)
|
||||||
|
|
Loading…
Reference in a new issue