mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-11 08:21:21 -04:00
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:
parent
2f4801aea0
commit
31c129b218
2 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue