summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-09-18 22:21:16 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-09-30 13:43:12 +0000
commit9bb8ea6f6156502bf1639ce349907b391e9b124d (patch)
tree268b12813527c477d6fea25f063ab4bf7f7e5dbc
parent17d86f9b8afa69a8461456ac1a02515d20611f07 (diff)
main: Use a configuration option for hidding out the cursor
Bug-AGL: SPEC-3580 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I3504fc2c6dda3c10a67a23e68126201acd4ba455
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index afe114b..590977f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1406,9 +1406,6 @@ int main(int argc, char *argv[])
return EXIT_SUCCESS;
}
- if (debug)
- ivi.hide_cursor = true;
-
log_ctx = weston_log_ctx_compositor_create();
if (!log_ctx) {
fprintf(stderr, "Failed to initialize weston debug framework.\n");
@@ -1434,6 +1431,8 @@ int main(int argc, char *argv[])
if (!backend)
backend = choose_default_backend();
}
+ /* from [core] */
+ weston_config_section_get_bool(section, "hide-cursor", &ivi.hide_cursor, false);
display = wl_display_create();
loop = wl_display_get_event_loop(display);