aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-08-03 14:03:53 +0100
committeremersion <contact@emersion.fr>2018-08-03 14:03:53 +0100
commitc4522062f6f7c2c9a6acc13de62f4dad7635ed5a (patch)
treef4893b5ebccfa567e38d523b5cd67f48e81aad28
parenteb9c9d8852bf3b82d78418796c73142054ffab99 (diff)
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);
}