Change-Id: I8795c6fbd2e7f67987c659eb9f71afba85816e92
EC_CHANGED(ec);
/* Set fuctions to prevent unwanted handling by shell */
- cdata->shell.surface = surface_resource;
- cdata->shell.configure = _e_comp_wl_input_pointer_configure;
- cdata->shell.map = _e_comp_wl_input_pointer_map;
+ cdata = e_client_cdata_get(ec);
+ if (cdata)
+ {
+ cdata->shell.surface = surface_resource;
+ cdata->shell.configure = _e_comp_wl_input_pointer_configure;
+ cdata->shell.map = _e_comp_wl_input_pointer_map;
+ }
e_client_layer_set(ec, E_LAYER_CLIENT_CURSOR);
ec->is_cursor = EINA_TRUE;