madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

centerwork: remove capi reference
authorLuca CPZ <luca.cpz@gmail.com>
Fri, 20 Jul 2018 11:05:03 +0000 (13:05 +0200)
committerLuca CPZ <luca.cpz@gmail.com>
Fri, 20 Jul 2018 11:05:03 +0000 (13:05 +0200)
layout/centerwork.lua

index bf0c0ca18d7249dce00895ab5e9adab68d04a9b6..2b38a69f0378ff5e095e45266b0d1fd4183a49c1 100644 (file)
@@ -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