mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
cage: remove support for rotating outputs
This is now handled through wlr_output_management
This commit is contained in:
parent
bd5b20e1fa
commit
27b6971b36
4 changed files with 1 additions and 15 deletions
|
|
@ -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
9
cage.c
|
|
@ -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;
|
||||||
|
|
|
||||||
2
output.c
2
output.c
|
|
@ -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) {
|
||||||
|
|
|
||||||
1
server.h
1
server.h
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue