]> git.madduck.net Git - etc/awesome.git/blobdiff - layout/centerwork.lua

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:

widget.fs: fixed first column formatting adjustment; closes #423
[etc/awesome.git] / 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