Merge pull request #245 from Sorky/patch-1

Add 2 x middle-mouse-button actions
This commit is contained in:
Luca CPZ 2018-11-04 14:05:16 +00:00 committed by GitHub
commit adc7ff97ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,7 @@ awful.util.tasklist_buttons = my_table.join(
c:raise()
end
end),
awful.button({ }, 2, function (c) c:kill() end),
awful.button({ }, 3, function ()
local instance = nil
@ -690,6 +691,7 @@ client.connect_signal("request::titlebars", function(c)
c:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.move(c)
end),
awful.button({ }, 2, function() c:kill() end),
awful.button({ }, 3, function()
c:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.resize(c)