layout/centerwork: fix comments/spacing style

Signed-off-by: Luca Capezzuto <luca.cpz@gmail.com>
This commit is contained in:
Luca Capezzuto 2022-06-11 11:33:40 +02:00
parent 5403835b96
commit dbf6e9cfb1
No known key found for this signature in database
GPG Key ID: 35B564C871E7EFEA
1 changed files with 6 additions and 5 deletions

View File

@ -15,7 +15,6 @@ local max = math.max
local mouse = mouse
local mousegrabber = mousegrabber
local screen = screen
local client = client
local centerwork = {
name = "centerwork",
@ -196,11 +195,14 @@ function centerwork.horizontal.mouse_resize_handler(c, corner, x, y)
return mouse_resize_handler(c, corner, x, y, 'horizontal')
end
-------------------------------------------------------------------------------
-- make focus.byidx and swap.byidx behave more consistently with other layouts
--[[
Make focus.byidx and swap.byidx behave more consistently with other layouts.
--]]
local awful = require("awful")
local gears = require("gears")
local client = client
local function compare_position(a, b)
if a.x == b.x then
@ -242,10 +244,9 @@ centerwork.focus = {}
--[[
Drop in replacements for awful.client.focus.byidx and awful.client.swap.byidx
that behaves consistently with other layouts
that behaves consistently with other layouts.
--]]
function centerwork.focus.byidx(i)
if in_centerwork() then
local cls = clients_by_position()