xwayland-unmanaged: Fix set_geometry using container_of of wrong member

Fixes a segfault with starting Steam.
This commit is contained in:
Joshua Ashton 2022-06-05 20:42:02 +00:00 committed by Johan Malm
parent 2a14e8271b
commit 538fa1f244

View file

@ -27,7 +27,7 @@ unmanaged_handle_set_geometry(struct wl_listener *listener, void *data)
{
wlr_log(WLR_INFO, "handling set_geometry");
struct xwayland_unmanaged *unmanaged =
wl_container_of(listener, unmanaged, commit);
wl_container_of(listener, unmanaged, set_geometry);
struct wlr_xwayland_surface *xsurface = unmanaged->xwayland_surface;
if (xsurface->x != unmanaged->lx || xsurface->y != unmanaged->ly) {