plugins/eyeonscreen: Animate towards window's screen's center
This looks better on multi screen setups.
This commit is contained in:
parent
a7f41f26bb
commit
aedd67ef4b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue