mirror of
https://github.com/labwc/labwc.git
synced 2026-03-27 07:58:31 -04:00
view: use wlr_output_layout_get_box()
This commit is contained in:
parent
27aa8173f3
commit
96617311cd
1 changed files with 2 additions and 7 deletions
|
|
@ -1223,13 +1223,8 @@ view_apply_fullscreen_geometry(struct view *view)
|
||||||
assert(output_is_usable(view->output));
|
assert(output_is_usable(view->output));
|
||||||
|
|
||||||
struct wlr_box box = { 0 };
|
struct wlr_box box = { 0 };
|
||||||
wlr_output_effective_resolution(view->output->wlr_output,
|
wlr_output_layout_get_box(view->server->output_layout,
|
||||||
&box.width, &box.height);
|
view->output->wlr_output, &box);
|
||||||
double ox = 0, oy = 0;
|
|
||||||
wlr_output_layout_output_coords(view->server->output_layout,
|
|
||||||
view->output->wlr_output, &ox, &oy);
|
|
||||||
box.x -= ox;
|
|
||||||
box.y -= oy;
|
|
||||||
view_move_resize(view, box);
|
view_move_resize(view, box);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue