From f5507ec677955ad88ca7e991fdf77bccfbeab6c4 Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 22 Jan 2018 09:29:52 +0100 Subject: cursor: fix segfault when destroying a wlr_output_layout with a wlr_cursor attached --- types/wlr_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index a432c219..fd48c1b6 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -510,7 +510,7 @@ void wlr_cursor_detach_input_device(struct wlr_cursor *cur, static void handle_layout_destroy(struct wl_listener *listener, void *data) { struct wlr_cursor_state *state = - wl_container_of(listener, state, layout_change); + wl_container_of(listener, state, layout_destroy); wlr_cursor_detach_output_layout(state->cursor); } -- cgit v1.2.3