<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [wayland] gedit killed by protocol error "Invalid anchor rectangle size""
href="https://bugzilla.gnome.org/show_bug.cgi?id=777176#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [wayland] gedit killed by protocol error "Invalid anchor rectangle size""
href="https://bugzilla.gnome.org/show_bug.cgi?id=777176">bug 777176</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
<pre>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);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>