<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#c2">Comment # 2</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>Created <span class=""><a href="attachment.cgi?id=343383&action=diff" name="attach_343383" title="[PATCH] wayland: avoid 0 width/height anchor rectangle">attachment 343383</a> <a href="attachment.cgi?id=343383&action=edit" title="[PATCH] wayland: avoid 0 width/height anchor rectangle">[details]</a></span> <a href='review?bug=777176&attachment=343383'>[review]</a>
[PATCH] wayland: avoid 0 width/height anchor rectangle
Passing a rectable with zero width or height to xdg_shell-v6
set_anchor_rect() will cause a protocol error and terminate the client,
as with gedit when pressing the Win key.
Reason for this is because the rectangle used to set the anchor comes
from gtk_text_layout_get_iter_location() which uses the pango layout
width/height, which can be empty if there is not character at the given
location.
Make sure we don't use 0 as width or height as an anchor rectangle to
avoid the protocol error.</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>