Fix the bug: issue #27

This commit is contained in:
Quan Guo 2016-07-13 16:38:03 +02:00
parent 79525e92d0
commit 4e52b080c5
1 changed files with 11 additions and 6 deletions

View File

@ -119,7 +119,8 @@ local function selectfn(restore, t, zt)
c.minimized = false
end
jump_to_func(c)
--jump_to_func(c)
awful.client.jumpto(c)
end
end
end
@ -372,16 +373,20 @@ function revelation.expose_callback(t, zt, clientlist)
if type(tag.view_only) == 'function' then
c = awful.mouse.client_under_pointer()
else
c = mouse.current_client
c = capi.mouse.current_client
end
local key_char = awful.util.table.hasitem(hintindex, c)
if mouse.buttons[1] == true then
if c ~= nil then
selectfn(restore, t, zt)(c)
for i,j in pairs(hintindex) do
hintbox[i].visible = false
end
return false
else
return true
end
elseif mouse.buttons[2] == true and pressedMiddle == false and c ~= nil then
-- is true whenever the button is down.
pressedMiddle = true