opening a client menu will close the old menu (per client)
This commit is contained in:
parent
4ef2a3d90e
commit
c0272c7e5d
6
init.lua
6
init.lua
|
@ -210,7 +210,11 @@ local function new(config)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
local button_right_click = cfg.right_click or function(c)
|
local button_right_click = cfg.right_click or function(c)
|
||||||
awful.menu(module.menu_client(c)):toggle()
|
if c.client_menu then
|
||||||
|
c.client_menu:hide()
|
||||||
|
end
|
||||||
|
c.client_menu = awful.menu(module.menu_client(c))
|
||||||
|
c.client_menu:toggle()
|
||||||
end
|
end
|
||||||
|
|
||||||
local resize_factor = cfg.resize_factor or 0.01
|
local resize_factor = cfg.resize_factor or 0.01
|
||||||
|
|
Loading…
Reference in New Issue