From e9e5bb137bf44a2b8400571019f8530507408fa8 Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Sat, 11 Jan 2020 16:59:55 +0100 Subject: [PATCH] xwayland: use view's (x,y) coordinate when maximizing It might happen that the (x,y) coordinate of the left-most monitor is not 0. If it isn't, this doesn't cost us anything, so better safe than sorry. --- xwayland.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwayland.c b/xwayland.c index 180a194..cfc33f9 100644 --- a/xwayland.c +++ b/xwayland.c @@ -1,7 +1,7 @@ /* * Cage: A Wayland kiosk. * - * Copyright (C) 2018-2019 Jente Hidskes + * Copyright (C) 2018-2020 Jente Hidskes * * See the LICENSE file accompanying this file. */ @@ -84,7 +84,7 @@ static void maximize(struct cg_view *view, int output_width, int output_height) { struct cg_xwayland_view *xwayland_view = xwayland_view_from_view(view); - wlr_xwayland_surface_configure(xwayland_view->xwayland_surface, 0, 0, output_width, output_height); + wlr_xwayland_surface_configure(xwayland_view->xwayland_surface, view->lx, view->ly, output_width, output_height); wlr_xwayland_surface_set_maximized(xwayland_view->xwayland_surface, true); }