From 29f8d1fc361ee0f0b11fb08cccaa0a0a5b93aa48 Mon Sep 17 00:00:00 2001 From: Neville Li Date: Wed, 11 May 2022 12:04:57 -0400 Subject: [PATCH] exclude minimized windows in centerwork focus/swap (#530) --- layout/centerwork.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/centerwork.lua b/layout/centerwork.lua index 142ccbe..aeb2efb 100644 --- a/layout/centerwork.lua +++ b/layout/centerwork.lua @@ -208,7 +208,10 @@ end local function clients_by_position() local this = client.focus if this then - local sorted = client.focus.first_tag:clients() + local sorted = {} + for _, c in ipairs(client.focus.first_tag:clients()) do + if not c.minimized then sorted[#sorted+1] = c end + end table.sort(sorted, compare_position) local idx = 0