Manuel Kasser <[email protected]> writes:
> when I switch to another tag by keyboard, there is usually a certain
> client under the cursor. I want that client to be focused without having
> to move the cursor or even clicking.
> I tried to replace the function awful.tag.viewnext by this:
>> function nextTag()
>> awful.tag.viewnext()
>> client.focus = mouse.object_under_pointer()
>> end
> but still the object the pointer is on doesn't get the focus unless I
> click or move the cursor over a border to another client which is
> focused then. Does anyone knows a solution for this?
Delay that call.
function delay(f, timeout_)
local t = timer({timeout = timeout_ or 0})
t:add_signal(
"timeout",
function()
t:stop()
f()
end)
t:start()
end
delay(
function()
local c = awful.mouse.client_under_pointer()
if c then
client.focus = c
end
end)
Christopher
--
To unsubscribe, send mail to [email protected].