exclude minimized windows in centerwork focus/swap (#530)
This commit is contained in:
parent
0df20e38bb
commit
29f8d1fc36
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue