minor: code style and comment fixes

This commit is contained in:
Daniel Hahler 2017-02-15 23:36:48 +01:00 committed by Yauhen Kirylau
parent 52011a68e1
commit bd02ee8558
2 changed files with 15 additions and 15 deletions

View File

@ -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,10 +266,10 @@ 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

View File

@ -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