Don't allow deleted wayland clients to set the cursor

This commit is contained in:
Derek Foreman 2016-02-29 12:12:35 -06:00 committed by Mike Blumenkrantz
parent 65166c5a36
commit 33582859e2
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ _e_comp_wl_input_pointer_cb_cursor_set(struct wl_client *client, struct wl_resou
E_CLIENT_FOREACH(ec)
{
if (e_object_is_del(E_OBJECT(ec))) continue;
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) continue;
if (!ec->comp_data->surface) continue;
if (client != wl_resource_get_client(ec->comp_data->surface)) continue;