This commit is contained in:
n3rdopolis 2026-04-05 21:24:26 +02:00 committed by GitHub
commit 8bebcd5916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 101 additions and 11 deletions

6
cage.c
View file

@ -241,6 +241,7 @@ usage(FILE *file, const char *cage)
fprintf(file,
"Usage: %s [OPTIONS] [--] [APPLICATION...]\n"
"\n"
" -c\t Enable clone mode for all attached screens\n"
" -d\t Don't draw client side decorations, when possible\n"
" -D\t Enable debug logging\n"
" -h\t Display this help message\n"
@ -257,8 +258,11 @@ static bool
parse_args(struct cg_server *server, int argc, char *argv[])
{
int c;
while ((c = getopt(argc, argv, "dDhm:sv")) != -1) {
while ((c = getopt(argc, argv, "cdDhm:sv")) != -1) {
switch (c) {
case 'c':
server->clone_mode = true;
break;
case 'd':
server->xdg_decoration = true;
break;