Don't skip the first directory entry when reading cursors.
authorDima Ryazanov <dima@gmail.com>
Thu, 26 Jul 2012 08:39:48 +0000 (01:39 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 27 Jul 2012 02:04:32 +0000 (22:04 -0400)
I end up missing the "bottom_right_corner" cursor.

cursor/xcursor.c

index 0fe0440..f08225c 100644 (file)
@@ -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 &&