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

Dima Ryazanov dima at gmail.com
Thu Jul 26 01:39:48 PDT 2012


I end up missing the "bottom_right_corner" cursor.
---
 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



More information about the wayland-devel mailing list