[Wayland-bugs] [Bug 782283] Wayland: Crash when dismissing a menu when a tooltip is visible

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Tue May 16 14:59:08 UTC 2017


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

Olivier Fourdan <ofourdan at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ofourdan at redhat.com

--- Comment #1 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 351976
  --> https://bugzilla.gnome.org/attachment.cgi?id=351976&action=edit
[PATCH] wayland: check parent surface for subsurface

When an event is received while a tooltip is showing, the GtkTooltip's
event handling code can end up calling gdk_window_set_transient_for()
from gtk_tooltip_set_last_window().

The Wayland GDK backend will try to automatically create a subsurface
in gdk_wayland_window_set_transient_for() but if the parent surface is
gone meanwhile, this will will cause a crash when trying to create a
subsurface from a parent with a null surface.

Checking for the parent is not sufficient, we ought to check for the
parent surface as well to avoid the crash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170516/cddda7bf/attachment.html>


More information about the wayland-bugs mailing list