wibox.drawable: Make screen_getbycoord() local

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-11-15 19:36:15 +01:00
parent aec751f0ea
commit f7bbcf1263
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ local wallpaper = nil
-- This is awful.screen.getbycoord() which we sadly cannot use from here (cyclic -- This is awful.screen.getbycoord() which we sadly cannot use from here (cyclic
-- dependencies are bad!) -- dependencies are bad!)
function screen_getbycoord(x, y) local function screen_getbycoord(x, y)
for i = 1, screen:count() do for i = 1, screen:count() do
local geometry = screen[i].geometry local geometry = screen[i].geometry
if x >= geometry.x and x < geometry.x + geometry.width if x >= geometry.x and x < geometry.x + geometry.width