File lightdm-gtk-greeter-fix-cursor.patch of Package lightdm-gtk-greeter

Index: lightdm-gtk-greeter-1.3.1/src/lightdm-gtk-greeter.c
===================================================================
--- lightdm-gtk-greeter-1.3.1.orig/src/lightdm-gtk-greeter.c
+++ lightdm-gtk-greeter-1.3.1/src/lightdm-gtk-greeter.c
@@ -769,9 +769,6 @@ main (int argc, char **argv)
     if (!lightdm_greeter_connect_sync (greeter, NULL))
         return EXIT_FAILURE;
 
-    /* Set default cursor */
-    gdk_window_set_cursor (gdk_get_default_root_window (), gdk_cursor_new (GDK_LEFT_PTR));
-
     /* Load background */
     value = g_key_file_get_value (config, "greeter", "background", NULL);
     if (!value)
@@ -885,6 +882,13 @@ main (int argc, char **argv)
     }
     g_clear_error (&error);
 
+    /* Set default cursor */
+    // gdk_window_set_cursor (gdk_get_default_root_window (), gdk_cursor_new (GDK_LEFT_PTR));
+    GdkCursor *cursor;
+    cursor = gdk_cursor_new (GDK_LEFT_PTR);
+    gdk_window_set_cursor (gdk_get_default_root_window (), cursor);
+    g_object_unref(cursor);
+
     login_window = GTK_WINDOW (gtk_builder_get_object (builder, "login_window"));
     login_box = GTK_WIDGET (gtk_builder_get_object (builder, "login_box"));
     login_button = GTK_BUTTON (gtk_builder_get_object (builder, "login_button"));