aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-node-view.c10
-rw-r--r--lib/widgets/ephy-overlay-escaping-child.c4
2 files changed, 10 insertions, 4 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index e30a5364d..abd1f0f41 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -191,9 +191,13 @@ gtk_tree_view_vertical_autoscroll (GtkTreeView *tree_view)
window = gtk_tree_view_get_bin_window (tree_view);
vadjustment = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (tree_view));
-
- gdk_window_get_pointer (window, NULL, &y, NULL);
-
+
+ gdk_window_get_device_position (window,
+ gdk_device_manager_get_client_pointer (
+ gdk_display_get_device_manager (
+ gtk_widget_get_display (GTK_WIDGET (tree_view)))),
+ NULL, &y, NULL);
+
y += gtk_adjustment_get_value (vadjustment);
gtk_tree_view_get_visible_rect (tree_view, &visible_rect);
diff --git a/lib/widgets/ephy-overlay-escaping-child.c b/lib/widgets/ephy-overlay-escaping-child.c
index c321d9282..b1fd796a8 100644
--- a/lib/widgets/ephy-overlay-escaping-child.c
+++ b/lib/widgets/ephy-overlay-escaping-child.c
@@ -82,7 +82,9 @@ parent_motion_notify_event (GtkWidget *widget,
gtk_widget_get_allocation (widget, &alloc);
if (is_point_in_rectangle (event->x, event->y, priv->escaping_area)) {
- gtk_widget_get_pointer (widget, &distance_x, &distance_y);
+ gdk_window_get_device_position (gtk_widget_get_window (widget),
+ gdk_event_get_device ((GdkEvent *) event),
+ &distance_x, &distance_y, NULL);
alloc.y += priv->escaping_distance + distance_y;
}
else {