From: Joshua Ashton Date: Sun, 5 Jun 2022 20:42:02 +0000 (+0000) Subject: xwayland-unmanaged: Fix set_geometry using container_of of wrong member X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=538fa1f244f26a98e59ac7034cac2ad7a109684b;p=proto%2Flabwc.git xwayland-unmanaged: Fix set_geometry using container_of of wrong member Fixes a segfault with starting Steam. --- diff --git a/src/xwayland-unmanaged.c b/src/xwayland-unmanaged.c index c0c6eeed..190b54aa 100644 --- a/src/xwayland-unmanaged.c +++ b/src/xwayland-unmanaged.c @@ -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) {