Hello,
I'm new to awesome and having some trouble figuring out how to get the focus
where I want it sometime. I'm used to right-clicking on the titlebar to
lower a client, so I added that to my rc.lua:
local function button_callback_lower(w, t)
client.focus:lower()
end
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
-- Add a titlebar
awful.titlebar.add(c, { modkey = modkey })
-- Mouse behavior for titlebar
local bts = awful.util.table.join(
awful.button({ }, 1, button_callback_focus_raise_move),
awful.button({ }, 3, button_callback_lower),
awful.button({ modkey }, 1, button_callback_move),
awful.button({ modkey }, 3, button_callback_resize))
c.titlebar:buttons(bts)
...
end)
This works fine, but the lowered client retains focus. My first thought was
to add to button_callback_lower something like
client.focus = awful.mouse.client_under_pointer()
but it turns out that awful.mouse.object_under_pointer() simply returns the
recently lowered titlebar. Is there a way to get it to return whatever is
now on top of that titlebar?
Thanks!
--
To unsubscribe, send mail to [email protected].