From 4f25b4097c6a9b163a87ac757fffb6770a607d83 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Thu, 11 Nov 2021 10:55:45 +0100 Subject: [PATCH] Fix auto_layout --- src/layout.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/layout.rs b/src/layout.rs index 2daf9c5..3fd5bda 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -41,10 +41,12 @@ pub fn auto_tile(res_to_min_width: &HashMap) { let min_window_width = &res_to_min_width.get(&output_width); if let Some(min_window_width) = min_window_width { - for container in - con::NodeIter::new(output).filter(|n| n.is_container()) - { + for container in con::NodeIter::new(output).filter(|n| { + n.node_type == s::NodeType::Workspace + || n.is_container() + }) { if container.is_scratchpad() { + println!(" Skipping scratchpad"); continue; } println!(