21 lines
495 B
Lua
Executable File
21 lines
495 B
Lua
Executable File
-- 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
|