From 788d8fec3327816ec87ba51168c2f022317edfed Mon Sep 17 00:00:00 2001 From: Ari Breitkreuz Date: Tue, 21 Apr 2020 16:45:40 +0200 Subject: [PATCH] Don't force defaults in menubar --- lib/menubar/init.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/menubar/init.lua b/lib/menubar/init.lua index 34877d45..d5860d2b 100644 --- a/lib/menubar/init.lua +++ b/lib/menubar/init.lua @@ -486,9 +486,7 @@ function menubar.show(scr) current_category = nil menulist_update(scr) - local prompt_args = menubar.prompt_args or {} - - awful.prompt.run(setmetatable({ + local default_prompt_args = { prompt = "Run: ", textbox = instance.prompt.widget, completion_callback = awful.completion.shell, @@ -499,7 +497,10 @@ function menubar.show(scr) menulist_update(scr) end, keypressed_callback = prompt_keypressed_callback - }, {__index=prompt_args})) + } + + awful.prompt.run(setmetatable(menubar.prompt_args, {__index=default_prompt_args})) + instance.wibox.visible = true end