Skip to content

Commit

Permalink
Include windows in window list containing empty value for 'window_typ…
Browse files Browse the repository at this point in the history
…e'. Addresses #43
  • Loading branch information
Regolith Linux committed Sep 5, 2022
1 parent 3ca7dd9 commit 2ab1f43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/windows/WindowPage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ namespace Ilia {
}

private void traverse_nodes (TreeReply node) {
if (node.ntype == "con" && node.window_type == "normal") {
if (navigable_window(node)) {
var pixbuf = load_icon_from_app_name (icon_theme, node.windowProperties.clazz, icon_size);

model.append (out iter);
Expand All @@ -190,6 +190,10 @@ namespace Ilia {
}
}

private bool navigable_window(TreeReply node) {
return node.ntype == "con" && (node.window_type == "normal" || node.window_type == "");
}

// Automatically set the first item in the list as selected.
private void set_selection () {
Gtk.TreePath path = new Gtk.TreePath.first ();
Expand Down

0 comments on commit 2ab1f43

Please sign in to comment.