Suppport output transforms

This commit is contained in:
Jente Hidskes 2019-01-20 14:11:52 +01:00
parent 7379226bbe
commit 8db6b82c59
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
3 changed files with 22 additions and 7 deletions

4
view.c
View file

@ -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);