e_comp_wl: Don't allow deleted wayland clients to set the cursor 54/73154/3
authorDuna Oh <duna.oh@samsung.com>
Tue, 7 Jun 2016 03:52:42 +0000 (12:52 +0900)
committerDuna Oh <duna.oh@samsung.com>
Fri, 10 Jun 2016 05:13:48 +0000 (22:13 -0700)
Signed-off-by: Duna Oh <duna.oh@samsung.com>
This path originated from upstream
https://phab.enlightenment.org/rE33582859e2dd75d340a99f418bc5e68a0672dd96

Change-Id: I787ac6d892b56e2820f373f087dd73cc991cb1e5

src/bin/e_comp_wl_input.c

index 7915c6c..45c5dee 100644 (file)
@@ -68,6 +68,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;