[PATCH wayland] Don't skip the first directory entry when reading cursors.

Kristian Høgsberg hoegsberg at gmail.com
Thu Jul 26 19:05:43 PDT 2012


On Thu, Jul 26, 2012 at 01:39:48AM -0700, Dima Ryazanov wrote:
> I end up missing the "bottom_right_corner" cursor.

Yikes, good find.  Applied.

Kristian

> ---
>  cursor/xcursor.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/cursor/xcursor.c b/cursor/xcursor.c
> index 0fe0440..f08225c 100644
> --- a/cursor/xcursor.c
> +++ b/cursor/xcursor.c
> @@ -870,7 +870,6 @@ load_all_cursors_from_dir(const char *path, int size,
>  	if (!dir)
>  		return;
>  
> -	ent = readdir(dir);
>  	for(ent = readdir(dir); ent; ent = readdir(dir)) {
>  #ifdef _DIRENT_HAVE_D_TYPE
>  		if (ent->d_type != DT_UNKNOWN &&
> -- 
> 1.7.9.5
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list