opening a client menu will close the old menu (per client)

This commit is contained in:
BZ 2020-06-22 09:57:25 +02:00
parent 4ef2a3d90e
commit c0272c7e5d
1 changed files with 5 additions and 1 deletions

View File

@ -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