exclude minimized windows in centerwork focus/swap (#530)

This commit is contained in:
Neville Li 2022-05-11 12:04:57 -04:00 committed by GitHub
parent 0df20e38bb
commit 29f8d1fc36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -208,7 +208,10 @@ end
local function clients_by_position() local function clients_by_position()
local this = client.focus local this = client.focus
if this then 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) table.sort(sorted, compare_position)
local idx = 0 local idx = 0