From 538fa1f244f26a98e59ac7034cac2ad7a109684b Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 5 Jun 2022 20:42:02 +0000 Subject: [PATCH] xwayland-unmanaged: Fix set_geometry using container_of of wrong member Fixes a segfault with starting Steam. --- src/xwayland-unmanaged.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {