Update scene node when an unmanaged window moves

A null check had to be added because, since a view's scene isn't created
until .map, there's a possibility that .set_geometry is called before
the scene node exists.
This commit is contained in:
Devin J. Pohly 2023-10-16 16:55:17 -05:00
parent 2f4801aea0
commit 31c129b218
2 changed files with 7 additions and 1 deletions

View file

@ -112,6 +112,7 @@ handle_xwayland_surface_set_geometry(struct wl_listener *listener, void *data)
if (!xwayland_view_should_manage(view)) {
view->lx = xwayland_view->xwayland_surface->x;
view->ly = xwayland_view->xwayland_surface->y;
view_position(view);
}
}