Unreviewed, rolling out r167700.
[WebKit-https.git] / Source / WebKit / mac / WebCoreSupport / WebChromeClient.mm
index 641249bade0987efb69c10e6af2a5908b41733c2..976b7cf1f504a2b0a99a59ec9106c607da5bdab9 100644 (file)
@@ -773,7 +773,10 @@ void WebChromeClient::setCursor(const WebCore::Cursor& cursor)
         return;
 
     NSWindow *window = [m_webView window];
-    if (!window || ![window isKeyWindow])
+    if (!window)
+        return;
+
+    if ([window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0])
         return;
 
     NSCursor *platformCursor = cursor.platformCursor();