From d1513479c703a611da7b0f8224a548bf4f02d837 Mon Sep 17 00:00:00 2001 From: Regolith Linux Date: Sun, 4 Sep 2022 17:07:46 -0700 Subject: [PATCH] Include windows in window list containing empty value for 'window_type'. Addresses https://github.com/regolith-linux/ilia/issues/43 --- src/windows/WindowPage.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/windows/WindowPage.vala b/src/windows/WindowPage.vala index 4653d04..436deeb 100644 --- a/src/windows/WindowPage.vala +++ b/src/windows/WindowPage.vala @@ -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); @@ -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 ();