From 8afd69d057f4c70f8ef5f59af0a1f1eb5928438d Mon Sep 17 00:00:00 2001 From: project-repo Date: Sun, 17 Apr 2022 12:18:04 +0200 Subject: [PATCH] Fix positioning of unmanged xwayland views --- xwayland.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xwayland.c b/xwayland.c index 9f42ce8..c3c3a57 100644 --- a/xwayland.c +++ b/xwayland.c @@ -87,8 +87,10 @@ maximize(struct cg_view *view, int width, int height) { } } - wlr_xwayland_surface_configure(xwayland_view->xwayland_surface, view->ox, - view->oy, width, height); + struct wlr_box *output_box = wlr_output_layout_get_box( + view->server->output_layout, view->server->curr_output->wlr_output); + wlr_xwayland_surface_configure(xwayland_view->xwayland_surface, view->ox+output_box->x, + view->oy+output_box->y, width, height); wlr_xwayland_surface_set_maximized(xwayland_view->xwayland_surface, true); }