xwayland.c: Fix xwayland views activating themself before mapping

This commit is contained in:
Consolatis 2022-02-22 10:01:49 +01:00 committed by Johan Malm
parent a2523081e2
commit 17d83402ee
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ unmanaged_handle_map(struct wl_listener *listener, void *data)
int ly = unmanaged->ly;
struct wlr_scene_node *parent, *node;
struct view *view = parent_view(unmanaged->server, xsurface);
if (!view || !view->scene_tree) {
if (!view || !view->scene_node) {
parent = &view->server->unmanaged_tree->node;
} else {
lx -= view->x;