Cursor doesn't change back to pointer when leaving the Safari window
[WebKit-https.git] / Source / WebKit2 / ChangeLog
index 92ea2d58a9bae3096972efdcda2c494bf46fee5d..37ec7e65b47dcfbac3a33a48e97818dc3e82489f 100644 (file)
@@ -1,3 +1,21 @@
+2014-04-22  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Cursor doesn't change back to pointer when leaving the Safari window
+        https://bugs.webkit.org/show_bug.cgi?id=132038
+
+        Reviewed by Alexey Proskuryakov.
+
+        Since the cursor type is now updated asynchronously after r147739,
+        [window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0]
+        evalutes to false depending on how fast cursor is moving.
+
+        Instead, check whether the NSWindow of the WebView is the key window or not since
+        key window appears to control the cursor style in Cocoa as far as I've tested:
+        https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
+
+        * UIProcess/mac/PageClientImpl.mm:
+        (WebKit::PageClientImpl::setCursor):
+
 2014-04-22  Yongjun Zhang  <yongjun_zhang@apple.com>
 
         Add SPI to expose provisional URL from Frame.
 2014-04-22  Yongjun Zhang  <yongjun_zhang@apple.com>
 
         Add SPI to expose provisional URL from Frame.