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

--- Comment #15 from Jonas Ådahl <[email protected]> ---
(In reply to Jonas Ådahl from comment #12)
> Created attachment 299481 [details] [review]
> wayland: Don't set cursor surface scale when we don't have a surface
> 
> The setting of the the surface scale even when the surface is not
> created from a surface was introduced due to a crash when getting the
> buffers when dividing by the scale. The only reason I can see this is
> that we get the buffer from a non-existing surface when the wl_cursor
> has not yet been set.
> 
> Instead, use the name field to avoid trying to use the non-existing
> surface, effectively avoiding the division-by-zero that way.

The original version had missing fallback NULL return. The new version fixes
that.

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