Drop -m flag

Tools can make use of the wlr-output-management-v1 protocol to
configure outputs. Let's drop the "last" special case and leave
all of the output configuration up to an external tool.
This commit is contained in:
Simon Ser 2025-12-27 22:07:16 +01:00
parent 832e88b0c9
commit 73025483fe
3 changed files with 1 additions and 61 deletions

11
cage.c
View file

@ -230,8 +230,6 @@ usage(FILE *file, const char *cage)
" -d\t Don't draw client side decorations, when possible\n"
" -D\t Enable debug logging\n"
" -h\t Display this help message\n"
" -m extend Extend the display across all connected outputs (default)\n"
" -m last Use only the last connected output\n"
" -s\t Allow VT switching\n"
" -v\t Show the version number and exit\n"
"\n"
@ -243,7 +241,7 @@ 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, "dDhsv")) != -1) {
switch (c) {
case 'd':
server->xdg_decoration = true;
@ -254,13 +252,6 @@ parse_args(struct cg_server *server, int argc, char *argv[])
case 'h':
usage(stdout, argv[0]);
return false;
case 'm':
if (strcmp(optarg, "last") == 0) {
server->output_mode = CAGE_MULTI_OUTPUT_MODE_LAST;
} else if (strcmp(optarg, "extend") == 0) {
server->output_mode = CAGE_MULTI_OUTPUT_MODE_EXTEND;
}
break;
case 's':
server->allow_vt_switch = true;
break;