Don't force defaults in menubar
This commit is contained in:
parent
87e7b84ff5
commit
788d8fec33
|
@ -486,9 +486,7 @@ function menubar.show(scr)
|
||||||
current_category = nil
|
current_category = nil
|
||||||
menulist_update(scr)
|
menulist_update(scr)
|
||||||
|
|
||||||
local prompt_args = menubar.prompt_args or {}
|
local default_prompt_args = {
|
||||||
|
|
||||||
awful.prompt.run(setmetatable({
|
|
||||||
prompt = "Run: ",
|
prompt = "Run: ",
|
||||||
textbox = instance.prompt.widget,
|
textbox = instance.prompt.widget,
|
||||||
completion_callback = awful.completion.shell,
|
completion_callback = awful.completion.shell,
|
||||||
|
@ -499,7 +497,10 @@ function menubar.show(scr)
|
||||||
menulist_update(scr)
|
menulist_update(scr)
|
||||||
end,
|
end,
|
||||||
keypressed_callback = prompt_keypressed_callback
|
keypressed_callback = prompt_keypressed_callback
|
||||||
}, {__index=prompt_args}))
|
}
|
||||||
|
|
||||||
|
awful.prompt.run(setmetatable(menubar.prompt_args, {__index=default_prompt_args}))
|
||||||
|
|
||||||
|
|
||||||
instance.wibox.visible = true
|
instance.wibox.visible = true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue