mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-06-22 13:36:02 -04:00
Add cage clone mode
The main window will be restricted to the smallest dimensions of all possible screens
This commit is contained in:
parent
79e1e0dfaa
commit
d2df3982a0
8 changed files with 101 additions and 11 deletions
6
cage.c
6
cage.c
|
|
@ -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"
|
||||
|
|
@ -260,8 +261,11 @@ parse_args(struct cg_server *server, int argc, char *argv[])
|
|||
server->enable_xwayland = true;
|
||||
|
||||
int c;
|
||||
while ((c = getopt(argc, argv, "dDhm:svx")) != -1) {
|
||||
while ((c = getopt(argc, argv, "cdDhm:svx")) != -1) {
|
||||
switch (c) {
|
||||
case 'c':
|
||||
server->clone_mode = true;
|
||||
break;
|
||||
case 'd':
|
||||
server->xdg_decoration = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue