From a67e74670b581a8abbd7542a3c41f97a721e89f1 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 17 Oct 2021 01:39:19 +0000 Subject: [PATCH] xwayland: Only perform top-left boundary check when using ssd We don't have decorations so we shouldn't account for them. Closes: #53 Signed-off-by: Joshua Ashton --- src/xwayland.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xwayland.c b/src/xwayland.c index 6e08fc46..bd9966f6 100644 --- a/src/xwayland.c +++ b/src/xwayland.c @@ -213,7 +213,9 @@ map(struct view *view) view->been_mapped = true; } - top_left_edge_boundary_check(view); + if (view->ssd.enabled) { + top_left_edge_boundary_check(view); + } /* Add commit here, as xwayland map/unmap can change the wlr_surface */ wl_signal_add(&view->xwayland_surface->surface->events.commit,