Re: [PATCH] wayland: fix crash when /usr/share/wayland/left_ptr.png is not available



On Sat, May 05, 2012 at 06:37:18PM -0700, Shawn Landden wrote:

What we really need here is to make GTK+ use libXcursor as well, as it
is it relies on the cursors weston used to install.  Any takers?

Kristian

> Signed-off-by: Shawn Landden <shawnlandden gmail com>
> ---
>  gdk/wayland/gdkdevice-wayland.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
> index 125563a..8de2ccf 100644
> --- a/gdk/wayland/gdkdevice-wayland.c
> +++ b/gdk/wayland/gdkdevice-wayland.c
> @@ -164,6 +164,9 @@ gdk_device_core_set_window_cursor (GdkDevice *device,
>        /* FIXME: Is this the best sensible default ? */
>        cursor = _gdk_wayland_display_get_cursor_for_type (device->display,
>                                                           GDK_LEFT_PTR);
> +      /* above returns NULL if it can't find the specified cursor */
> +      if (!cursor)
> +        return;
>      }
>  
>    buffer = _gdk_wayland_cursor_get_buffer(cursor, &x, &y);
> -- 
> 1.7.9.5
> 
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]