mirror of https://github.com/lcpz/lain.git
layout/centerwork: fix comments/spacing style
Signed-off-by: Luca Capezzuto <luca.cpz@gmail.com>
This commit is contained in:
parent
5403835b96
commit
dbf6e9cfb1
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue