Refresh geomtbl after swapping clients to prevent showing wrong wiboxes

This commit is contained in:
Stefan Siegel 2015-02-24 16:28:20 +01:00 committed by Emmanuel Lepage Vallee
parent 52416fb650
commit c05afaa44f
1 changed files with 7 additions and 0 deletions

View File

@ -137,6 +137,13 @@ local function bydirection(dir, c, swap,max)
c:raise()
end
end
if target then
-- Geometries have changed by swapping, so refresh.
cltbl,geomtbl = max and floating_clients() or client.tiled(),{}
for i,cl in ipairs(cltbl) do
geomtbl[i] = cl:geometry()
end
end
end
display_wiboxes(cltbl,geomtbl,float,swap,c)
end