From c0272c7e5d743973f73efc096e5b4f5d1e40ab5b Mon Sep 17 00:00:00 2001 From: BZ Date: Mon, 22 Jun 2020 09:57:25 +0200 Subject: [PATCH] opening a client menu will close the old menu (per client) --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 4474614..4c5abd6 100644 --- a/init.lua +++ b/init.lua @@ -210,7 +210,11 @@ local function new(config) } end 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 local resize_factor = cfg.resize_factor or 0.01