Drop short option for --cursor

This commit is contained in:
Simon Ser 2021-09-10 14:25:19 +02:00
parent f8e251962c
commit fb4ec7cb4e
2 changed files with 4 additions and 5 deletions

View file

@ -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"

View file

@ -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 '?':