Fix issues #21

This commit is contained in:
Quan Guo 2015-12-31 11:35:39 +01:00
parent 2ed94b0d8f
commit 2d6e1c3870
1 changed files with 6 additions and 8 deletions

View File

@ -118,16 +118,14 @@ local function match_clients(rule, _clients, t, is_excluded)
if mf(c, rule) then
-- Store geometry before setting their tags
clientData[c] = {}
if awful.client.floating.get(c) then
clientData[c]["geometry"] = c:geometry()
flt = awful.client.property.get(c, "floating")
if flt ~= nil then
clientData[c]["floating"] = flt
awful.client.property.set(c, "floating", false)
end
clientData[c]["geometry"] = c:geometry()
flt = awful.client.property.get(c, "floating")
if flt ~= nil then
clientData[c]["floating"] = flt
awful.client.property.set(c, "floating", false)
end
for k,v in pairs(revelation.property_to_watch) do
clientData[c][k] = c[k]
c[k] = v