e_hwc_window: update cursor image before tdm_hwc_window_set_cursor_image 87/219387/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 4 Dec 2019 07:12:56 +0000 (16:12 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 4 Dec 2019 12:05:53 +0000 (21:05 +0900)
Change-Id: Ic873c4d4b9af475e0ff7eabe676c5c0a5589009b

src/bin/e_hwc_window.c

index 96812eaceca76abb78284d3045afa349bc4baf9d..20ceb2c4a82ebc1cf7da1669095c23e71db36e2b 100644 (file)
@@ -520,13 +520,6 @@ _e_hwc_window_cursor_image_update(E_Hwc_Window *hwc_window)
      {
         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);
@@ -540,6 +533,13 @@ _e_hwc_window_cursor_image_update(E_Hwc_Window *hwc_window)
              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;
           }