[Wayland-bugs] [Bug 735830] Pixmap based cursors get surface destroyed after first use

gtk+ (bugzilla.gnome.org) bugzilla at gnome.org
Mon Sep 1 10:26:35 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=735830
  gtk+ | Backend: Wayland | unspecified

--- Comment #1 from Carlos Garnacho <carlosg at gnome.org> 2014-09-01 17:26:35 UTC ---
Created an attachment (id=285040)
 View: https://bugzilla.gnome.org/attachment.cgi?id=285040
 Review: https://bugzilla.gnome.org/review?bug=735830&attachment=285040

wayland: Reference pixmap-based cursors' surface before handing the wl_buffer

cairo_surface_destroy() is called after the buffer is released, for every
wl_buffer. Windows usually reference their cairo surface before rendering,
so that extra reference is consumed after the buffer is released, so do
the same with cursor surfaces and add an extra reference whenever a cursor
surface change is about to be scheduled.

Otherwise, the GdkWaylandCursor is left with an invalid cairo_surface_t,
which causes crashes the next time it is used.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Wayland-bugs mailing list