https://bugzilla.gnome.org/show_bug.cgi?id=777176

--- Comment #1 from Olivier Fourdan <[email protected]> ---
gtk+ passes an invalid rect with a width of 0 to set_anchor_rect() which
triggers a Wayland protocol error.

That rect comes from pango, from:

->  popup_targets_received() in gtk+/gtk/gtktextview.c
-> gtk_text_view_get_iter_location()
-> gtk_text_layout_get_iter_location()
...
3022   pango_layout_index_to_pos (display->layout, byte_index, &pango_rect);
3023   
3024   rect->x = PANGO_PIXELS (x_offset + pango_rect.x);
3025   rect->y += PANGO_PIXELS (pango_rect.y) + display->top_margin;
3026   rect->width = PANGO_PIXELS (pango_rect.width);
3027   rect->height = PANGO_PIXELS (pango_rect.height);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to