[PATCH] toytoolkit: Use default cursor size

MoD mod-oss at hush.ai
Sat Feb 23 10:21:31 PST 2013


After wayland-cursor changes, this allows users to configure cursor size for toytoolkit with the XCURSOR_SIZE environment variable as documented in weston's man page.
---
 clients/window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clients/window.c b/clients/window.c
index 249ba6f..29201fe 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -1108,7 +1108,7 @@ create_cursors(struct display *display)
 	parse_config_file(config_file, cs, ARRAY_LENGTH(cs), NULL);
 	free(config_file);
 
-	display->cursor_theme = wl_cursor_theme_load(theme, 32, display->shm);
+	display->cursor_theme = wl_cursor_theme_load(theme, 0, display->shm);
 	display->cursors =
 		malloc(ARRAY_LENGTH(cursors) * sizeof display->cursors[0]);
 
-- 
1.8.1.4



More information about the wayland-devel mailing list