summaryrefslogtreecommitdiff
path: root/examples/vala/simple-bar/widget/Bar.vala
diff options
context:
space:
mode:
Diffstat (limited to 'examples/vala/simple-bar/widget/Bar.vala')
-rw-r--r--examples/vala/simple-bar/widget/Bar.vala8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/vala/simple-bar/widget/Bar.vala b/examples/vala/simple-bar/widget/Bar.vala
index ba9f06c..8913c95 100644
--- a/examples/vala/simple-bar/widget/Bar.vala
+++ b/examples/vala/simple-bar/widget/Bar.vala
@@ -10,8 +10,12 @@ class Workspaces : Gtk.Box {
foreach (var child in get_children())
child.destroy();
- foreach (var ws in hypr.workspaces)
- add(button(ws));
+ foreach (var ws in hypr.workspaces) {
+ // filter out special workspaces
+ if (!(ws.id >= -99 && ws.id <= -2)) {
+ add(button(ws));
+ }
+ }
}
Gtk.Button button(AstalHyprland.Workspace ws) {