Cage: implement output transform

This commit adds the command line switch -r, which rotates the output 90
degrees clockwise and can be specified up to three times.
This commit is contained in:
Tristan Daniel 2019-04-14 01:50:12 +02:00 committed by Jente Hidskes
parent 69872baead
commit 9e6a5ad44f
4 changed files with 20 additions and 6 deletions

4
seat.c
View file

@ -157,6 +157,8 @@ handle_new_touch(struct cg_seat *seat, struct wlr_input_device *device)
wl_list_insert(&seat->touch, &touch->link);
touch->destroy.notify = handle_touch_destroy;
wl_signal_add(&touch->device->events.destroy, &touch->destroy);
wlr_cursor_map_input_to_output(seat->cursor, device, seat->server->output->wlr_output);
}
static void
@ -189,6 +191,8 @@ handle_new_pointer(struct cg_seat *seat, struct wlr_input_device *device)
wl_list_insert(&seat->pointers, &pointer->link);
pointer->destroy.notify = handle_pointer_destroy;
wl_signal_add(&device->events.destroy, &pointer->destroy);
wlr_cursor_map_input_to_output(seat->cursor, device, seat->server->output->wlr_output);
}
static void