aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-01-22 08:56:47 -0500
committerGitHub <noreply@github.com>2018-01-22 08:56:47 -0500
commit03440bbd83b5d68404db8ebc2df310ec0f8c9b32 (patch)
treebb729e1f6a9e6065e27b44e31d07d8382fb2a765
parente5fa4d8e8e6e81b0cdac9df2dcb1f589867c98f2 (diff)
parentf5507ec677955ad88ca7e991fdf77bccfbeab6c4 (diff)
Merge pull request #578 from emersion/fix-cursor-output-layout-destroy
cursor: fix segfault when destroying a wlr_output_layout with a wlr_cursor attached
-rw-r--r--types/wlr_cursor.c2
1 files changed, 1 insertions, 1 deletions
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);
}