From 0cb908564215f17c795162e5d881281833243ba5 Mon Sep 17 00:00:00 2001 From: Quan Guo Date: Fri, 9 Oct 2015 23:30:42 +0200 Subject: [PATCH] Fix a bug. --- init.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/init.lua b/init.lua index 9709f04..a4efea8 100644 --- a/init.lua +++ b/init.lua @@ -231,6 +231,22 @@ function revelation.restore(t, zt) capi.keygrabber.stop() capi.mousegrabber.stop() + for _, c in pairs(clients) do + if clientData[c] then + for k,v in pairs(clientData[c]) do + if v ~= nil then + if k== "geometry" then + c:geometry(v) + elseif k == "floating" then + awful.client.property.set(c, "floating", v) + else + c[k]=v + end + end + end + end + end + for scr=1, capi.screen.count() do t[scr].activated = false zt[scr].activated = false