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

--- Comment #2 from Olivier Fourdan <[email protected]> ---
Created attachment 343383
  --> https://bugzilla.gnome.org/attachment.cgi?id=343383&action=edit
[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.

-- 
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