doc: Document that awful.mouse.resize/move use the permission framework.

This commit is contained in:
Emmanuel Lepage Vallee 2020-01-25 19:24:00 -05:00
parent 44301589c4
commit 973671b081
2 changed files with 3 additions and 1 deletions

View File

@ -177,7 +177,8 @@ end
--- Move the wibox under the cursor. --- Move the wibox under the cursor.
-- @staticfct awful.mouse.wibox.move -- @staticfct awful.mouse.wibox.move
--@tparam wibox w The wibox to move, or none to use that under the pointer -- @tparam wibox w The wibox to move, or none to use that under the pointer
-- @request wibox geometry mouse.move granted Requests to move the wibox.
function mouse.wibox.move(w) function mouse.wibox.move(w)
w = w or mouse.current_wibox w = w or mouse.current_wibox
if not w then return end if not w then return end

View File

@ -103,6 +103,7 @@ end
-- @tparam client client A client. -- @tparam client client A client.
-- @tparam[default=mouse.resize] string context The resizing context. -- @tparam[default=mouse.resize] string context The resizing context.
-- @tparam[opt={}] table args A set of `awful.placement` arguments. -- @tparam[opt={}] table args A set of `awful.placement` arguments.
-- @request wibox geometry mouse.resize granted Requests to resize the wibox.
local function handler(_, client, context, args) --luacheck: no unused_args local function handler(_, client, context, args) --luacheck: no unused_args
args = args or {} args = args or {}
context = context or "mouse.resize" context = context or "mouse.resize"