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 <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2021-10-17 01:39:19 +00:00 committed by Johan Malm
parent f12617deea
commit a67e74670b

View file

@ -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,