mirror of https://github.com/lcpz/lain.git
exclude minimized windows in centerwork focus/swap (#530)
This commit is contained in:
parent
0df20e38bb
commit
29f8d1fc36
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue