diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-17 17:08:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-17 17:17:31 -0400 |
commit | 75d931098620119e744af82d32b850e367a46701 (patch) | |
tree | 735a9eddeddefbe922a8c0df5cdc6ce45dbbf5ea /gtk/gtkimcontextwayland.c | |
parent | 93d4253c93c2817c1d9c27ed2c702ed400308186 (diff) | |
download | gtk+-75d931098620119e744af82d32b850e367a46701.tar.gz |
Change coordinate translation apis to take doubles
Change gtk_widget_translate_coordinates and
gtk_native_get_surface_transform to operate
on doubles. Update all callers.
Diffstat (limited to 'gtk/gtkimcontextwayland.c')
-rw-r--r-- | gtk/gtkimcontextwayland.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkimcontextwayland.c b/gtk/gtkimcontextwayland.c index 6c3b2b393a..658e6e7f7b 100644 --- a/gtk/gtkimcontextwayland.c +++ b/gtk/gtkimcontextwayland.c @@ -354,6 +354,7 @@ notify_cursor_location (GtkIMContextWayland *context) { GtkIMContextWaylandGlobal *global; cairo_rectangle_int_t rect; + double x, y; global = gtk_im_context_wayland_get_global (context); if (global == NULL) @@ -363,8 +364,10 @@ notify_cursor_location (GtkIMContextWayland *context) gtk_widget_translate_coordinates (context->widget, GTK_WIDGET (gtk_widget_get_root (context->widget)), rect.x, rect.y, - &rect.x, &rect.y); + &x, &y); + rect.x = x; + rect.y = y; zwp_text_input_v3_set_cursor_rectangle (global->text_input, rect.x, rect.y, rect.width, rect.height); |