[gtk/global-coords: 25/37] widget: Stop using gdk_device_get_position
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/global-coords: 25/37] widget: Stop using gdk_device_get_position
- Date: Wed, 29 May 2019 18:05:51 +0000 (UTC)
commit b636e32d856ed77664a3b72a996a24205ef4fd71
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 29 07:43:29 2019 -0400
widget: Stop using gdk_device_get_position
Root coordinates are going away. Stop
setting them in crossing events, so we
can drop this api.
gtk/gtkwidget.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index ba90492382..22bbf1886c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]