Merge pull request #1175 from emersion/fix-xdg-output-layout-destroy

xdg-output: fix segfault in handle_layout_destroy
This commit is contained in:
Ryan Dwyer 2018-08-03 23:11:11 +10:00 committed by GitHub
commit 23e2c3c759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ static void handle_layout_change(struct wl_listener *listener, void *data) {
static void handle_layout_destroy(struct wl_listener *listener, void *data) {
struct wlr_xdg_output_manager *manager =
wl_container_of(listener, manager, layout_change);
wl_container_of(listener, manager, layout_destroy);
wlr_xdg_output_manager_destroy(manager);
}