fix #1: use move and resize functions that work for 4.3 and git versions
This commit is contained in:
parent
c0272c7e5d
commit
ac43692a2f
12
init.lua
12
init.lua
|
@ -195,19 +195,15 @@ local function new(config)
|
||||||
if c.maximized then
|
if c.maximized then
|
||||||
c.maximized = false
|
c.maximized = false
|
||||||
end
|
end
|
||||||
c:activate{
|
c:emit_signal("request::activate", "mouse_click", {raise = true})
|
||||||
context = "titlebar",
|
awful.mouse.client.move(c)
|
||||||
action = "mouse_move"
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
local button_double_click = cfg.button_double_click or function(c)
|
local button_double_click = cfg.button_double_click or function(c)
|
||||||
c.maximized = not c.maximized
|
c.maximized = not c.maximized
|
||||||
end
|
end
|
||||||
local button_middle_click = cfg.middle_click or function(c)
|
local button_middle_click = cfg.middle_click or function(c)
|
||||||
c:activate{
|
c:emit_signal("request::activate", "mouse_click", {raise = true})
|
||||||
context = "titlebar",
|
awful.mouse.client.resize(c)
|
||||||
action = "mouse_resize"
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
local button_right_click = cfg.right_click or function(c)
|
local button_right_click = cfg.right_click or function(c)
|
||||||
if c.client_menu then
|
if c.client_menu then
|
||||||
|
|
Loading…
Reference in New Issue