diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index 5e263171..817a69bd 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -246,7 +246,7 @@ local context_mapper = { function ewmh.geometry(c, context, hints) local layout = c.screen.selected_tag and c.screen.selected_tag.layout or nil - -- Setting the geometry wont work unless the client is floating. + -- Setting the geometry will not work unless the client is floating. if (not c.floating) and (not layout == asuit.floating) then return end @@ -266,15 +266,15 @@ function ewmh.geometry(c, context, hints) -- floating client resize) if aplace[context] then - -- Check if it correspond to a boolean property + -- Check if it corresponds to a boolean property. local state = c[original_context] - -- If the property is boolean and it correspond to the undo operation, + -- If the property is boolean and it corresponds to the undo operation, -- restore the stored geometry. if state == false then local original = repair_geometry_lock repair_geometry_lock = true - aplace.restore(c,{context=context}) + aplace.restore(c, {context=context}) repair_geometry_lock = original return end diff --git a/lib/awful/mouse/resize.lua b/lib/awful/mouse/resize.lua index de79c004..24b4fa2c 100644 --- a/lib/awful/mouse/resize.lua +++ b/lib/awful/mouse/resize.lua @@ -1,7 +1,7 @@ --------------------------------------------------------------------------- ---- An extandable mouse resizing handler. +--- An extendable mouse resizing handler. -- --- This module offer a resizing and moving mechanism for drawable such as +-- This module offers a resizing and moving mechanism for drawables such as -- clients and wiboxes. -- -- @author Emmanuel Lepage Vallee <elv1313@gmail.com> @@ -43,8 +43,8 @@ local cursors = { --- Set the resize mode. -- The available modes are: -- --- * **live**: Resize the layout everytime the mouse move --- * **after**: Resize the layout only when the mouse is released +-- * **live**: Resize the layout everytime the mouse moves. +-- * **after**: Resize the layout only when the mouse is released. -- -- Some clients, such as XTerm, may lose information if resized too often. -- @@ -93,10 +93,10 @@ end -- -- Valid `args` are: -- --- * *enter_callback*: A function called before the `mousegrabber` start --- * *move_callback*: A function called when the mouse move --- * *leave_callback*: A function called before the `mousegrabber` is released --- * *mode*: The resize mode +-- * *enter_callback*: A function called before the `mousegrabber` starts. +-- * *move_callback*: A function called when the mouse moves. +-- * *leave_callback*: A function called before the `mousegrabber` is released. +-- * *mode*: The resize mode. -- -- @function awful.mouse.resize -- @tparam client client A client @@ -186,7 +186,7 @@ local function handler(_, client, context, args) --luacheck: no unused_args if args.mode == "live" then -- Ask the resizing handler to resize the client - client:emit_signal( req, context, geo) + client:emit_signal(req, context, geo) end -- Quit when the button is released @@ -202,7 +202,7 @@ local function handler(_, client, context, args) --luacheck: no unused_args geo = args.placement(client, args) -- Ask the resizing handler to resize the client - client:emit_signal( req, context, geo) + client:emit_signal(req, context, geo) end geo = nil @@ -220,7 +220,7 @@ local function handler(_, client, context, args) --luacheck: no unused_args -- In case it was modified setmetatable(geo,{__index=args}) - client:emit_signal( req, context, geo) + client:emit_signal(req, context, geo) return false end, cursor)