awesomewm/clients/binds/titlebar.lua

21 lines
495 B
Lua
Raw Normal View History

2021-08-01 07:24:26 -07:00
-- Make sure clients and titlebars don't share bids. Both will trigger,
-- and that will cause problems. See buttons.lua
return function(client)
return gears.table.join(
awful.button( {}, 1,
function()
client:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.move(client)
end
),
awful.button( {}, 3,
function()
client:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.resize(client)
end
)
)
end