forked from ashpie/simple-awesome
Fix tiled clients swapping with non tiling and/or maximized clients
This commit is contained in:
parent
809531b189
commit
80ba6a0aa9
@ -53,14 +53,16 @@ local screenRight = function(geo)
|
||||
end
|
||||
end
|
||||
|
||||
local swapClient = function(c, dir, stacked)
|
||||
local swapClient = function(c, dir)
|
||||
local sel = c or capi.client.focus
|
||||
if sel then
|
||||
local cltbl = awful.client.visible(sel.screen, stacked)
|
||||
local cltbl = sel.screen.tiled_clients
|
||||
local geomtbl = {}
|
||||
for i,cl in ipairs(cltbl) do
|
||||
if not cl.maximized then
|
||||
geomtbl[i] = cl:geometry()
|
||||
end
|
||||
end
|
||||
local target = grect.get_in_direction(dir, geomtbl, sel:geometry())
|
||||
|
||||
-- If we found a client to swap with, then go for it
|
||||
|
Loading…
Reference in New Issue
Block a user