From b6c96e8338c40d0c72a13927f3d30d7053505067 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Sun, 30 Aug 2020 21:23:46 -0400 Subject: [PATCH] Do not arrange immobilized clients. --- layout.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layout.lua b/layout.lua index 7c4713c..67993c1 100644 --- a/layout.lua +++ b/layout.lua @@ -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