{
if (hwc_window->cursor.img_ptr)
{
- error = tdm_hwc_window_set_cursor_image(hwc_window->thwc_window, 0, 0, 0, NULL);
- if (error != TDM_ERROR_NONE)
- {
- EHWERR("fail to set cursor image to thwc(%p)", hwc_window->ec, hwc_window->hwc, hwc_window, hwc_window->thwc_window);
- return EINA_FALSE;
- }
-
if (hwc_window->cursor_buffer_destroy_listener.notify)
{
wl_list_remove(&hwc_window->cursor_buffer_destroy_listener.link);
hwc_window->cursor.img_h = 0;
hwc_window->cursor.img_stride = 0;
+ error = tdm_hwc_window_set_cursor_image(hwc_window->thwc_window, 0, 0, 0, NULL);
+ if (error != TDM_ERROR_NONE)
+ {
+ EHWERR("fail to set cursor image to thwc(%p)", hwc_window->ec, hwc_window->hwc, hwc_window, hwc_window->thwc_window);
+ return EINA_FALSE;
+ }
+
return EINA_TRUE;
}