From 96617311cd8711a30a8972fe4eb0b40e6b5e46e9 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Sun, 30 Nov 2025 18:34:25 -0500 Subject: [PATCH] view: use wlr_output_layout_get_box() --- src/view.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/view.c b/src/view.c index 57014b8d..cf0c521c 100644 --- a/src/view.c +++ b/src/view.c @@ -1223,13 +1223,8 @@ view_apply_fullscreen_geometry(struct view *view) assert(output_is_usable(view->output)); struct wlr_box box = { 0 }; - wlr_output_effective_resolution(view->output->wlr_output, - &box.width, &box.height); - 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; + wlr_output_layout_get_box(view->server->output_layout, + view->output->wlr_output, &box); view_move_resize(view, box); }