From 924e8892710f6b5c5a0fadfc23d7592cb2e9760d Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 29 Feb 2016 03:09:16 -0500 Subject: [PATCH] awful.screen: Fix regression --- lib/awful/screen.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/screen.lua b/lib/awful/screen.lua index 51c1f8bb..1da18149 100644 --- a/lib/awful/screen.lua +++ b/lib/awful/screen.lua @@ -17,7 +17,7 @@ local capi = local util = require("awful.util") local function get_screen(s) - return s and screen[s] + return s and capi.screen[s] end -- we use require("awful.client") inside functions to prevent circular dependencies. @@ -58,12 +58,12 @@ end -- @param x The x coordinate -- @param y The y coordinate function screen.getbycoord(x, y) - local s = screen[1] + local s = capi.screen[1] local dist = screen.getdistance_sq(s, x, y) for i = 2, capi.screen:count() do local d = screen.getdistance_sq(i, x, y) if d < dist then - s, dist = screen[i], d + s, dist = capi.screen[i], d end end return s.index