diff --git a/lib/menubar/init.lua b/lib/menubar/init.lua index 75a66480e..5c4d3df1f 100644 --- a/lib/menubar/init.lua +++ b/lib/menubar/init.lua @@ -122,6 +122,7 @@ end --- Cut item list to return only current page. -- @tparam table all_items All items list. -- @tparam str query Search query. +-- @tparam number scr Screen number -- @return table List of items for current page. local function get_current_page(all_items, query, scr) if not instance.prompt.width then @@ -160,6 +161,7 @@ end --- Update the menubar according to the command entered by user. -- @tparam str query Search query. +-- @tparam number scr Screen number local function menulist_update(query, scr) query = query or "" shownitems = {} diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 8025fdb86..1279f1d97 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -256,6 +256,7 @@ end --- Compute textbox width. -- @tparam wibox.widget.textbox textbox Textbox instance. +-- @tparam number s Screen number -- @treturn int Text width. function utils.compute_textbox_width(textbox, s) s = s or mouse.screen @@ -265,6 +266,7 @@ end --- Compute text width. -- @tparam str text Text. +-- @tparam number s Screen number -- @treturn int Text width. function utils.compute_text_width(text, s) return utils.compute_textbox_width(wibox.widget.textbox(awful_util.escape(text)), s)