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

           Summary: Pixmap based cursors get surface destroyed after first
                    use
    Classification: Platform
           Product: gtk+
           Version: unspecified
        OS/Version: Mac OS
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
                CC: [email protected], [email protected]
     GNOME version: ---


When a pixmap-based cursor is set as the current cursor, its wl_buffer goes
through the same general machinery than GdkWindow wl_buffers do, which does
call cairo_surface_destroy on buffer_release_callback(). These cursors don't
account for its only surface reference to be dropped elsewhere, and crashes
happen when the cursor gets reused (eg. setting another cursor, and that one
back).

I'm attaching a patch that adds a reference to the cairo surface before handing
the wl_buffer for rendering, so it behaves similarly to GdkWindows there.

-- 
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.
_______________________________________________
Wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to