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
This commit is contained in:
Drew DeVault 2018-01-22 08:56:47 -05:00 committed by GitHub
commit 03440bbd83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}