stop showing negative workspaces (till proper way of dealing with them
is implmented)
This commit is contained in:
parent
9f8332a034
commit
7fab8b51cc
1 changed files with 19 additions and 16 deletions
|
|
@ -86,6 +86,8 @@ Singleton {
|
||||||
try {
|
try {
|
||||||
for (let i = 0; i < hlWorkspaces.length; i++) {
|
for (let i = 0; i < hlWorkspaces.length; i++) {
|
||||||
const ws = hlWorkspaces[i];
|
const ws = hlWorkspaces[i];
|
||||||
|
// Only append workspaces with id >= 1
|
||||||
|
if (ws.id >= 1) {
|
||||||
workspaces.append({
|
workspaces.append({
|
||||||
id: i,
|
id: i,
|
||||||
idx: ws.id,
|
idx: ws.id,
|
||||||
|
|
@ -96,6 +98,7 @@ Singleton {
|
||||||
isUrgent: ws.urgent === true
|
isUrgent: ws.urgent === true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
workspacesChanged();
|
workspacesChanged();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Error updating Hyprland workspaces:", e);
|
console.error("Error updating Hyprland workspaces:", e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue