Merge pull request #105 from anasgets111/main

stop showing negative workspaces (till proper way of dealing with them
This commit is contained in:
Lysec 2025-08-12 12:36:08 +02:00 committed by GitHub
commit 7edb670584
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,6 +86,8 @@ Singleton {
try {
for (let i = 0; i < hlWorkspaces.length; i++) {
const ws = hlWorkspaces[i];
// Only append workspaces with id >= 1
if (ws.id >= 1) {
workspaces.append({
id: i,
idx: ws.id,
@ -96,6 +98,7 @@ Singleton {
isUrgent: ws.urgent === true
});
}
}
workspacesChanged();
} catch (e) {
console.error("Error updating Hyprland workspaces:", e);