aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-04 16:44:45 -0400
committerDrew DeVault <sir@cmpwn.com>2017-08-04 16:44:45 -0400
commit7c393d514382a9784894ac2950669361b5c9def1 (patch)
tree7ab77e6adbaf0ab60563e343c5fd77a465922820
parent95653c0bf745bab67978873880cfd2ad586c1198 (diff)
Missed a variable
-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;
}