From dbf6e9cfb142533a360c1c4096b2fc491da8d97f Mon Sep 17 00:00:00 2001 From: Luca Capezzuto Date: Sat, 11 Jun 2022 11:33:40 +0200 Subject: [PATCH] layout/centerwork: fix comments/spacing style Signed-off-by: Luca Capezzuto --- layout/centerwork.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/layout/centerwork.lua b/layout/centerwork.lua index 528d19e..c105676 100644 --- a/layout/centerwork.lua +++ b/layout/centerwork.lua @@ -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()