cage: remove support for rotating outputs

This is now handled through wlr_output_management
This commit is contained in:
Jente Hidskes 2022-01-14 21:22:11 +01:00 committed by Simon Ser
parent bd5b20e1fa
commit 27b6971b36
4 changed files with 1 additions and 15 deletions

9
cage.c
View file

@ -201,7 +201,6 @@ usage(FILE *file, const char *cage)
" -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"
" -r\t Rotate the output 90 degrees clockwise, specify up to three times\n"
" -s\t Allow VT switching\n"
" -v\t Show the version number and exit\n"
"\n"
@ -213,7 +212,7 @@ static bool
parse_args(struct cg_server *server, int argc, char *argv[])
{
int c;
while ((c = getopt(argc, argv, "dhm:rsv")) != -1) {
while ((c = getopt(argc, argv, "dhm:sv")) != -1) {
switch (c) {
case 'd':
server->xdg_decoration = true;
@ -228,12 +227,6 @@ parse_args(struct cg_server *server, int argc, char *argv[])
server->output_mode = CAGE_MULTI_OUTPUT_MODE_EXTEND;
}
break;
case 'r':
server->output_transform++;
if (server->output_transform > WL_OUTPUT_TRANSFORM_270) {
server->output_transform = WL_OUTPUT_TRANSFORM_NORMAL;
}
break;
case 's':
server->allow_vt_switch = true;
break;