diff options
author | Emilio Pozuelo Monfort <pochu27@gmail.com> | 2013-03-14 17:23:37 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-19 14:42:43 -0400 |
commit | ab44b0c61e886b2d335e683ee73f5cb186bd6f63 (patch) | |
tree | 607ef2a8696d3329ebf1e06dde36e1cbff7175f2 | |
parent | d6be88b5e2f0382e52d640b92dd46b4e5e22b1ca (diff) |
toytoolkit: implement cursor-size config key
-rw-r--r-- | clients/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clients/window.c b/clients/window.c index d9c4e435..170a6c8e 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1097,10 +1097,12 @@ create_cursors(struct display *display) { char *config_file; char *theme = NULL; + unsigned int size = 32; unsigned int i, j; struct wl_cursor *cursor; struct config_key shell_keys[] = { { "cursor-theme", CONFIG_KEY_STRING, &theme }, + { "cursor-size", CONFIG_KEY_UNSIGNED_INTEGER, &size }, }; struct config_section cs[] = { { "shell", shell_keys, ARRAY_LENGTH(shell_keys), NULL }, @@ -1110,7 +1112,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, size, display->shm); display->cursors = malloc(ARRAY_LENGTH(cursors) * sizeof display->cursors[0]); |