From 973671b081cdf399f8d2eb4d89baa8aa9b436371 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 25 Jan 2020 19:24:00 -0500 Subject: [PATCH] doc: Document that awful.mouse.resize/move use the permission framework. --- lib/awful/mouse/init.lua | 3 ++- lib/awful/mouse/resize.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/awful/mouse/init.lua b/lib/awful/mouse/init.lua index f4f526e9..9e1de712 100644 --- a/lib/awful/mouse/init.lua +++ b/lib/awful/mouse/init.lua @@ -177,7 +177,8 @@ end --- Move the wibox under the cursor. -- @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) w = w or mouse.current_wibox if not w then return end diff --git a/lib/awful/mouse/resize.lua b/lib/awful/mouse/resize.lua index 98981d33..ceb88350 100644 --- a/lib/awful/mouse/resize.lua +++ b/lib/awful/mouse/resize.lua @@ -103,6 +103,7 @@ end -- @tparam client client A client. -- @tparam[default=mouse.resize] string context The resizing context. -- @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 args = args or {} context = context or "mouse.resize"