mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Suppport output transforms
This commit is contained in:
parent
7379226bbe
commit
8db6b82c59
3 changed files with 22 additions and 7 deletions
4
view.c
4
view.c
|
|
@ -40,7 +40,7 @@ view_maximize(struct cg_view *view)
|
|||
struct cg_output *output = view->server->output;
|
||||
int output_width, output_height;
|
||||
|
||||
wlr_output_effective_resolution(output->wlr_output, &output_width, &output_height);
|
||||
wlr_output_transformed_resolution(output->wlr_output, &output_width, &output_height);
|
||||
view->maximize(view, output_width, output_height);
|
||||
}
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ view_center(struct cg_view *view)
|
|||
struct wlr_output *output = view->server->output->wlr_output;
|
||||
|
||||
int output_width, output_height;
|
||||
wlr_output_effective_resolution(output, &output_width, &output_height);
|
||||
wlr_output_transformed_resolution(output, &output_width, &output_height);
|
||||
|
||||
int width, height;
|
||||
view->get_geometry(view, &width, &height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue