aboutsummaryrefslogtreecommitdiff
path: root/examples/compositor/wl_compositor.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/compositor/wl_compositor.c')
-rw-r--r--examples/compositor/wl_compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/compositor/wl_compositor.c b/examples/compositor/wl_compositor.c
index b022e71c..52fc0e00 100644
--- a/examples/compositor/wl_compositor.c
+++ b/examples/compositor/wl_compositor.c
@@ -89,7 +89,7 @@ static void destroy_surface_listener(struct wl_listener *listener, void *data) {
struct wl_resource *res = NULL;
wl_list_for_each(res, &state->surfaces, link) {
- if (_res == surface->resource) {
+ if (res == surface->resource) {
wl_list_remove(&res->link);
break;
}