From fb4ec7cb4e9555d895f12240b005846480c2a61c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 10 Sep 2021 14:25:19 +0200 Subject: [PATCH] Drop short option for --cursor --- src/main.cpp | 4 ++-- src/steamcompmgr.cpp | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 880b5ec..837897c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,7 +48,7 @@ const struct option *gamescope_options = (struct option[]){ { "prefer-output", required_argument, nullptr, 'O' }, // steamcompmgr options - { "cursor", required_argument, nullptr, 'a' }, + { "cursor", required_argument, nullptr, 0 }, { "ready-fd", required_argument, nullptr, 'R' }, { "stats-path", required_argument, nullptr, 'T' }, { "hide-cursor-delay", required_argument, nullptr, 'C' }, @@ -76,7 +76,7 @@ const char usage[] = " -W, --output-width output width\n" " -H, --output-height output height\n" " -n, --nearest-neighbor-filter use nearest neighbor filtering\n" - " -a, --cursor path to default cursor image\n" + " --cursor path to default cursor image\n" " -R, --ready-fd notify FD when ready\n" " -T, --stats-path write statistics to path\n" " -C, --hide-cursor-delay hide cursor image after delay\n" diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index faa9afc..eb8fad2 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -3493,9 +3493,6 @@ steamcompmgr_main (int argc, char **argv) case 'x': useXRes = False; break; - case 'a': - g_customCursorPath = optarg; - break; case 0:; // long options without a short option opt_name = gamescope_options[opt_index].name; if (strcmp(opt_name, "debug-focus") == 0) { @@ -3504,6 +3501,8 @@ steamcompmgr_main (int argc, char **argv) synchronize = True; } else if (strcmp(opt_name, "debug-events") == 0) { debugEvents = True; + } else if (strcmp(opt_name, "cursor") == 0) { + g_customCursorPath = optarg; } break; case '?':