Commit a4150dd6 authored by sergio@webkit.org's avatar sergio@webkit.org
Browse files

2011-01-18 Sergio Villar Senin <svillar@igalia.com>

        Reviewed by Martin Robinson.

        [Gtk] Build fixes for gtk3 build
        https://bugs.webkit.org/show_bug.cgi?id=52648

        * DumpRenderTree/gtk/EventSender.cpp:
        (beginDragWithFilesCallback):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8cb1692b
2011-01-18 Sergio Villar Senin <svillar@igalia.com>
Reviewed by Martin Robinson.
[Gtk] Build fixes for gtk3 build
https://bugs.webkit.org/show_bug.cgi?id=52648
* DumpRenderTree/gtk/EventSender.cpp:
(beginDragWithFilesCallback):
2011-01-18 Dirk Pranke <dpranke@chromium.org>
 
Reviewed by Mihai Parparita.
......@@ -475,17 +475,18 @@ static JSValueRef beginDragWithFilesCallback(JSContextRef context, JSObjectRef f
NULL);
GdkEvent event;
GdkWindow* viewGDKWindow = gtk_widget_get_window(view);
memset(&event, 0, sizeof(event));
event.type = GDK_MOTION_NOTIFY;
event.motion.x = lastMousePositionX;
event.motion.y = lastMousePositionY;
event.motion.time = GDK_CURRENT_TIME;
event.motion.window = view->window;
event.motion.device = gdk_device_get_core_pointer();
event.motion.window = viewGDKWindow;
event.motion.device = getDefaultGDKPointerDevice(viewGDKWindow);
event.motion.state = GDK_BUTTON1_MASK;
int xRoot, yRoot;
gdk_window_get_root_coords(view->window, lastMousePositionX, lastMousePositionY, &xRoot, &yRoot);
gdk_window_get_root_coords(viewGDKWindow, lastMousePositionX, lastMousePositionY, &xRoot, &yRoot);
event.motion.x_root = xRoot;
event.motion.y_root = yRoot;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment