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.
|
||||
*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*
|
||||
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"
|
||||
" -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;
|
||||
|
|
|
|||
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) {
|
||||
struct cg_output *next = wl_container_of(output->link.next, next, link);
|
||||
if (next) {
|
||||
|
|
|
|||
1
server.h
1
server.h
|
|
@ -49,7 +49,6 @@ struct cg_server {
|
|||
|
||||
bool xdg_decoration;
|
||||
bool allow_vt_switch;
|
||||
enum wl_output_transform output_transform;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue