2006-03-07 Eric Seidel <eseidel@apple.com>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Mar 2006 22:26:55 +0000 (22:26 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Mar 2006 22:26:55 +0000 (22:26 +0000)
        Reviewed by hyatt.

        Fix cursor support on win32.

        * platform/win/WidgetWin.cpp:
        (WebCore::Widget::setCursor):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13199 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/win/WidgetWin.cpp

index 8360a955da64860da12f373479e9a6fee4965e93..93e496e4bad1a2fa6994a5bcef309ed1950e31f3 100644 (file)
@@ -1,3 +1,12 @@
+2006-03-07  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by hyatt.
+
+        Fix cursor support on win32.
+
+        * platform/win/WidgetWin.cpp:
+        (WebCore::Widget::setCursor):
+
 2006-03-07  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by hyatt.
index 4a65ca374692cb9857d9a566d24b6a2c3b7bc3b1..9b9863f064d8b7c17b6cb70c615df7e8e07ce8fa 100644 (file)
@@ -125,7 +125,11 @@ void Widget::setFont(const Font& font)
 
 void Widget::setCursor(const Cursor& cursor)
 {
-    SetProp(data->windowHandle, L"PROP_CURSOR", cursor.impl());
+    // SetCursor only works until the next event is recieved.
+    // However, we call this method on every mouse-moved,
+    // so this should work well enough for our purposes.
+    if (HCURSOR c = cursor.impl())
+        SetCursor(c);
 }
 
 void Widget::show()