diff --git a/src/plugins/eyeonscreen/package/contents/code/main.js b/src/plugins/eyeonscreen/package/contents/code/main.js index 7263029be3..7758e6f2de 100644 --- a/src/plugins/eyeonscreen/package/contents/code/main.js +++ b/src/plugins/eyeonscreen/package/contents/code/main.js @@ -17,14 +17,14 @@ var eyeOnScreenEffect = { }, slurp: function (showing) { var stackingOrder = effects.stackingOrder; - var screenGeo = effects.virtualScreenGeometry; - var center = { value1: screenGeo.x + screenGeo.width/2, - value2: screenGeo.y + screenGeo.height/2 }; for (var i = 0; i < stackingOrder.length; ++i) { var w = stackingOrder[i]; if (!w.visible || !(showing || w.slurpedByEyeOnScreen)) { continue; } + const screenGeo = w.screen.geometry; + const center = { value1: screenGeo.x + screenGeo.width / 2, + value2: screenGeo.y + screenGeo.height / 2 }; w.slurpedByEyeOnScreen = showing; if (w.desktopWindow) { // causes "seizures" because of opposing movements