Drop short option for --cursor
This commit is contained in:
parent
f8e251962c
commit
fb4ec7cb4e
2 changed files with 4 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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 '?':
|
||||
|
|
Loading…
Reference in a new issue