From a4c86f9ace9dc5caad4f942af5d1be3eca47f666 Mon Sep 17 00:00:00 2001 From: Luca CPZ Date: Fri, 20 Jul 2018 13:05:03 +0200 Subject: [PATCH] centerwork: remove capi reference --- layout/centerwork.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/centerwork.lua b/layout/centerwork.lua index bf0c0ca..2b38a69 100644 --- a/layout/centerwork.lua +++ b/layout/centerwork.lua @@ -10,7 +10,7 @@ --]] -local capi, floor, max, screen = capi, math.floor, math.max, screen +local floor, max, mouse, mousegrabber, screen = math.floor, math.max, mouse, mousegrabber, screen local centerwork = { name = "centerwork", @@ -152,11 +152,11 @@ local function mouse_resize_handler(c, corner, x, y, orientation) corner_coords = { y = wa.y + wa.height * (1 - mwfact) / 2, x = g.x + offset } end - capi.mouse.coords(corner_coords) + mouse.coords(corner_coords) local prev_coords = {} - capi.mousegrabber.run(function(_mouse) + mousegrabber.run(function(_mouse) if not c.valid then return false end for _, v in ipairs(_mouse.buttons) do if v then -- 2.39.5