aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <RyanDwyer@users.noreply.github.com>2018-08-03 23:11:11 +1000
committerGitHub <noreply@github.com>2018-08-03 23:11:11 +1000
commit23e2c3c75968f5b2905b761e6cfc7eedb3f8ce81 (patch)
treef4893b5ebccfa567e38d523b5cd67f48e81aad28
parenteb9c9d8852bf3b82d78418796c73142054ffab99 (diff)
parentc4522062f6f7c2c9a6acc13de62f4dad7635ed5a (diff)
Merge pull request #1175 from emersion/fix-xdg-output-layout-destroy
xdg-output: fix segfault in handle_layout_destroy
-rw-r--r--types/wlr_xdg_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_xdg_output.c b/types/wlr_xdg_output.c
index 1a3bba2c..ad62fe11 100644
--- a/types/wlr_xdg_output.c
+++ b/types/wlr_xdg_output.c
@@ -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);
}