diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c index ada4d5e..7847370 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -415,7 +415,11 @@ display_handle_delete_id(void *data, struct wl_display *display, uint32_t id) pthread_mutex_lock(&display->mutex); proxy = wl_map_lookup(&display->objects, id); - if (proxy != WL_ZOMBIE_OBJECT) + + if (!proxy) + wl_log("error: received delete_id for unknown id (%u)\n", id); + + if (proxy && proxy != WL_ZOMBIE_OBJECT) proxy->flags |= WL_PROXY_FLAG_ID_DELETED; else wl_map_remove(&display->objects, id); |
