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

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


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: gtk-bugs at gtk.org
        ReportedBy: carlosg at gnome.org
         QAContact: gtk-bugs at gtk.org
                CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
     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.


More information about the Wayland-bugs mailing list