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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user