[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
trey
trey at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:45:27 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 3c7d21304d7c483e8daa68c87ef481b5fae96478
Author: trey <trey at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Jun 14 18:47:39 2004 +0000
Use a different hack, as recommended by Kristin, to force the drag
manager to exit a modal event wait it is in. The hack is required
to update the drag image on the fly. Instead of posting a CG
event we post at the AppKit level.
Reviewed by Louch
* WebCoreSupport.subproj/WebGraphicsBridge.m:
(-[WebGraphicsBridge setDraggingImage:at:]):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 20542ca..4ced167 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,15 @@
+2004-06-14 Trey Matteson <trey at apple.com>
+
+ Use a different hack, as recommended by Kristin, to force the drag
+ manager to exit a modal event wait it is in. The hack is required
+ to update the drag image on the fly. Instead of posting a CG
+ event we post at the AppKit level.
+
+ Reviewed by Louch
+
+ * WebCoreSupport.subproj/WebGraphicsBridge.m:
+ (-[WebGraphicsBridge setDraggingImage:at:]):
+
2004-06-14 Chris Blumenberg <cblu at apple.com>
Fixed:
diff --git a/WebKit/WebCoreSupport.subproj/WebGraphicsBridge.m b/WebKit/WebCoreSupport.subproj/WebGraphicsBridge.m
index 040fc23..b551e97 100644
--- a/WebKit/WebCoreSupport.subproj/WebGraphicsBridge.m
+++ b/WebKit/WebCoreSupport.subproj/WebGraphicsBridge.m
@@ -188,12 +188,12 @@ static void FlipImageSpec(CoreDragImageSpec* imageSpec) {
[bitmapImage release];
- // Hack: This incantation is how you post a flags-changed event through CG. In this case we're
- // saying that the CAPSLOCK key was released, which doesn't seem to effect anything. We post it
- // to wake up the NSDragManager, which is sitting in a nextEvent call up the stack from us because
- // the CF drag manager is too lame to use the RunLoop by itself. If we're lucky for Tiger we can
- // get the AppKit to listen for a completely innocuous event, which we can then post instead.
- CGPostKeyboardEvent(0, 57, false);
+ // Hack: We must post an event to wake up the NSDragManager, which is sitting in a nextEvent call
+ // up the stack from us because the CF drag manager is too lame to use the RunLoop by itself. This
+ // is the most innocuous event, per Kristen.
+
+ NSEvent *ev = [NSEvent mouseEventWithType:NSMouseMoved location:NSZeroPoint modifierFlags:0 timestamp:0 windowNumber:0 context:nil eventNumber:0 clickCount:0 pressure:0];
+ [NSApp postEvent:ev atStart:YES];
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list