magnifier: Do not use the deprecated geometry access

This commit is contained in:
Emmanuel Lepage Vallee 2016-09-11 02:08:26 -04:00
parent 1ede1acc9d
commit ecdcd01dba
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ local magnifier = {}
function magnifier.mouse_resize_handler(c, corner, x, y) function magnifier.mouse_resize_handler(c, corner, x, y)
capi.mouse.coords({ x = x, y = y }) capi.mouse.coords({ x = x, y = y })
local wa = capi.screen[c.screen].workarea local wa = c.screen.workarea
local center_x = wa.x + wa.width / 2 local center_x = wa.x + wa.width / 2
local center_y = wa.y + wa.height / 2 local center_y = wa.y + wa.height / 2
local maxdist_pow = (wa.width^2 + wa.height^2) / 4 local maxdist_pow = (wa.width^2 + wa.height^2) / 4