widget: Stop using gdk_device_get_position

Root coordinates are going away. Stop
setting them in crossing events, so we
can drop this api.
This commit is contained in:
Matthias Clasen
2019-05-29 07:43:29 -04:00
parent d515c43dce
commit b636e32d85

View File

@@ -8315,9 +8315,8 @@ synth_crossing (GtkWidget *widget,
event->any.send_event = TRUE;
event->crossing.child_surface = g_object_ref (surface);
event->crossing.time = GDK_CURRENT_TIME;
gdk_device_get_position (device,
&event->crossing.x_root,
&event->crossing.y_root);
event->crossing.x_root = 0;
event->crossing.y_root = 0;
gdk_surface_get_device_position (surface,
device,
&event->crossing.x,