make wibox-es with letters clickable

This commit is contained in:
actionless 2017-01-29 00:33:43 +01:00
parent 3f77dba7ef
commit 6b59175b1e
1 changed files with 15 additions and 0 deletions

View File

@ -367,6 +367,7 @@ function revelation.expose_callback(t, zt, clientlist)
local pressedMiddle = false
local lastClient = nil
capi.mousegrabber.run(function(mouse)
local c
@ -375,6 +376,20 @@ function revelation.expose_callback(t, zt, clientlist)
else
c = awful.mouse.client_under_pointer()
end
if c then
lastClient = c
else
local current_wibox = capi.mouse.current_wibox
if current_wibox then
for i = 1, #revelation.charorder do
local char = revelation.charorder:sub(i,i)
if hintbox[char] == current_wibox then
c = lastClient
break
end
end
end
end
local key_char = awful.util.table.hasitem(hintindex, c)
if mouse.buttons[1] == true then
if c ~= nil then