From db8dee68f58726264e7c98caa7fb9c0f6cf125a9 Mon Sep 17 00:00:00 2001 From: project-repo Date: Mon, 8 Jan 2024 19:28:59 +0100 Subject: [PATCH] Fix geometry of fullscreen views --- cagebreak.c | 2 +- output.c | 2 +- xdg_shell.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cagebreak.c b/cagebreak.c index 970412f..c2aca0f 100644 --- a/cagebreak.c +++ b/cagebreak.c @@ -678,7 +678,7 @@ main(int argc, char *argv[]) { struct cg_output *output, *output_tmp; wl_list_for_each_safe(output, output_tmp, &tmp_list, link) { wl_list_remove(&output->link); - wl_list_insert(&server.outputs,&output->link); + wl_list_insert(&server.outputs, &output->link); output_configure(&server, output); } server.curr_output = diff --git a/output.c b/output.c index 3c40db0..c048b9b 100644 --- a/output.c +++ b/output.c @@ -317,7 +317,7 @@ output_apply_config(struct cg_server *server, struct cg_output *output, prev_box.y = output->layout_box.y; prev_box.width = output->layout_box.width; prev_box.height = output->layout_box.height; - bool prio_changed=false; + bool prio_changed = false; if(config->role != OUTPUT_ROLE_DEFAULT) { output->role = config->role; if((output->role == OUTPUT_ROLE_PERIPHERAL) && diff --git a/xdg_shell.c b/xdg_shell.c index 0b83bac..fa15ad0 100644 --- a/xdg_shell.c +++ b/xdg_shell.c @@ -164,8 +164,9 @@ handle_xdg_shell_surface_request_fullscreen(struct wl_listener *listener, * they display in fullscreen mode, so we set it here. */ struct wlr_box layout_box; - wlr_output_layout_get_box(xdg_shell_view->view.server->output_layout, NULL, - &layout_box); + wlr_output_layout_get_box( + xdg_shell_view->view.server->output_layout, + xdg_shell_view->view.workspace->output->wlr_output, &layout_box); wlr_xdg_toplevel_set_size(xdg_shell_view->xdg_surface->toplevel, layout_box.width, layout_box.height);