mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-23 05:35:16 -04:00
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:
parent
69872baead
commit
9e6a5ad44f
4 changed files with 20 additions and 6 deletions
4
seat.c
4
seat.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue