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

View file

@ -27,10 +27,6 @@ activities outside the scope of the running application are prevented.
*last* Cage uses only the last connected monitor. *last* Cage uses only the last connected monitor.
*extend* Cage extends the display across all connected monitors. *extend* Cage extends the display across all connected monitors.
*-r*
Rotate the output 90 degrees clockwise. This can be specified up to three
times, each resulting in an additional 90 degrees clockwise rotation.
*-s* *-s*
Allow VT switching Allow VT switching

9
cage.c
View file

@ -201,7 +201,6 @@ usage(FILE *file, const char *cage)
" -h\t Display this help message\n" " -h\t Display this help message\n"
" -m extend Extend the display across all connected outputs (default)\n" " -m extend Extend the display across all connected outputs (default)\n"
" -m last Use only the last connected output\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" " -s\t Allow VT switching\n"
" -v\t Show the version number and exit\n" " -v\t Show the version number and exit\n"
"\n" "\n"
@ -213,7 +212,7 @@ static bool
parse_args(struct cg_server *server, int argc, char *argv[]) parse_args(struct cg_server *server, int argc, char *argv[])
{ {
int c; int c;
while ((c = getopt(argc, argv, "dhm:rsv")) != -1) { while ((c = getopt(argc, argv, "dhm:sv")) != -1) {
switch (c) { switch (c) {
case 'd': case 'd':
server->xdg_decoration = true; 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; server->output_mode = CAGE_MULTI_OUTPUT_MODE_EXTEND;
} }
break; break;
case 'r':
server->output_transform++;
if (server->output_transform > WL_OUTPUT_TRANSFORM_270) {
server->output_transform = WL_OUTPUT_TRANSFORM_NORMAL;
}
break;
case 's': case 's':
server->allow_vt_switch = true; server->allow_vt_switch = true;
break; break;

View file

@ -217,8 +217,6 @@ handle_new_output(struct wl_listener *listener, void *data)
} }
} }
wlr_output_set_transform(wlr_output, output->server->output_transform);
if (server->output_mode == CAGE_MULTI_OUTPUT_MODE_LAST) { if (server->output_mode == CAGE_MULTI_OUTPUT_MODE_LAST) {
struct cg_output *next = wl_container_of(output->link.next, next, link); struct cg_output *next = wl_container_of(output->link.next, next, link);
if (next) { if (next) {

View file

@ -49,7 +49,6 @@ struct cg_server {
bool xdg_decoration; bool xdg_decoration;
bool allow_vt_switch; bool allow_vt_switch;
enum wl_output_transform output_transform;
}; };
#endif #endif