Fix the another lazy call related problem

This commit is contained in:
Quan Guo 2015-10-09 23:22:34 +02:00
parent feabe58bd8
commit 87f9cb39e9
1 changed files with 6 additions and 25 deletions

View File

@ -83,6 +83,11 @@ local function selectfn(restore, t, zt)
return function(c)
revelation.restore(t, zt)
-- Focus and raise
--
if type(delayed_call) == 'function' then
capi.awesome.emit_signal("refresh")
end
if awful.util.table.hasitem(hintindex, c) then
if c.minimized then
c.minimized = false
@ -222,6 +227,7 @@ function revelation.restore(t, zt)
t[scr].screen = nil
end
capi.keygrabber.stop()
capi.mousegrabber.stop()
@ -230,31 +236,6 @@ function revelation.restore(t, zt)
zt[scr].activated = false
end
local clients
for scr=1, capi.screen.count() do
if revelation.curr_tag_only then
clients = awful.client.visible(scr)
else
clients = capi.client.get(scr)
end
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
end
for i,j in pairs(hintindex) do
hintbox[i].visible = false
end