summaryrefslogtreecommitdiff
path: root/clients/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/window.c')
-rw-r--r--clients/window.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/clients/window.c b/clients/window.c
index 8d4ee3a7..5b20da57 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -1309,15 +1309,12 @@ create_cursors(struct display *display)
{
struct weston_config *config;
struct weston_config_section *s;
- int config_fd, size;
+ int size;
char *theme = NULL;
unsigned int i, j;
struct wl_cursor *cursor;
- config_fd = open_config_file("weston.ini");
- config = weston_config_parse(config_fd);
- close(config_fd);
-
+ config = weston_config_parse("weston.ini");
s = weston_config_get_section(config, "shell", NULL, NULL);
weston_config_section_get_string(s, "cursor-theme", &theme, NULL);
weston_config_section_get_int(s, "cursor-size", &size, 32);