Do not arrange immobilized clients.

This commit is contained in:
Xinhao Yuan 2020-08-30 21:23:46 -04:00
parent 7b0637a37a
commit b6c96e8338
1 changed files with 3 additions and 2 deletions

View File

@ -186,7 +186,8 @@ function module.create(args_or_name, editor, default_cmd)
if draft_mode then
for i, c in ipairs(cls) do
if c.floating then
if c.floating or c.immobilized then
log(DEBUG, "Ignore client " .. tostring(c))
else
local skip = false
if c.machi_lu ~= nil and c.machi_rd ~= nil and
@ -222,7 +223,7 @@ function module.create(args_or_name, editor, default_cmd)
end
else
for i, c in ipairs(cls) do
if c.floating then
if c.floating or c.immobilized then
log(DEBUG, "Ignore client " .. tostring(c))
else
if c.machi_region ~= nil and