From 7d158de356edde342fa6f0e4d9e8c4704a76218c Mon Sep 17 00:00:00 2001 From: Saikat Chakrabarti Date: Sat, 20 Jun 2009 17:12:03 -0700 Subject: [PATCH] Fix for incorrect chain received mouseEntered events. Closes #199. Reviewed by me. --- AppKit/CPWindow/CPWindow.j | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index e2ef55142..48a9968c6 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -1234,10 +1234,10 @@ CPTexturedBackgroundWindowMask var deviation = MIN(_mouseEnteredStack.length, mouseEnteredStack.length); while (deviation--) - if (_mouseEnteredStack[deviation] !== mouseEnteredStack[deviation]) + if (_mouseEnteredStack[deviation] === mouseEnteredStack[deviation]) break; - var index = deviation, + var index = deviation + 1, count = _mouseEnteredStack.length; if (index < count) @@ -1248,7 +1248,7 @@ CPTexturedBackgroundWindowMask [_mouseEnteredStack[index] mouseExited:event]; } - index = deviation; + index = deviation + 1; count = mouseEnteredStack.length; if (index < count)