e_hwc_window: update cursor image before tdm_hwc_window_set_cursor_image 60/219360/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 11:28:35 +0000 (20:28 +0900)
Change-Id: I690cf814c278d6ee5cfb49cbf03a54984c7ede2a

src/bin/e_hwc_window.c

index 528ed2846386c48e1d419887c21d6cc8cd1e52c5..07d456ae89ee2778aaeeea167bb1b160bc3cc45c 100644 (file)
@@ -519,13 +519,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);
@@ -539,6 +532,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;
           }