aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-09 07:30:30 -0400
committerTony Crisci <tony@dubstepdish.com>2017-08-09 12:31:16 -0400
commitbdfe9faf58a373a158be85d12ddc5d09fb3ea70f (patch)
treed6ac6205ed4e60c1f14451812d398f5df04d7b98
parenta6c7d8d14f2f418eeb066b5062f031ee4ebeda82 (diff)
Add todo for destroy_xdg_shell_surface
This free was causing crashes so remove the implementation and make a note to do it later.
-rw-r--r--examples/compositor/xdg_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/compositor/xdg_shell.c b/examples/compositor/xdg_shell.c
index 4933b9e4..a9d1f3f1 100644
--- a/examples/compositor/xdg_shell.c
+++ b/examples/compositor/xdg_shell.c
@@ -101,8 +101,8 @@ static void xdg_surface_destroy(struct wl_client *client,
}
static void destroy_xdg_shell_surface(struct wl_resource *resource) {
- struct xdg_surface_state *state = wl_resource_get_user_data(resource);
- free(state);
+ wlr_log(L_DEBUG, "TODO destroy xdg shell surface");
+ //struct xdg_surface_state *state = wl_resource_get_user_data(resource);
}
static void xdg_surface_get_toplevel(struct wl_client *client,