e_hwc_windows: set the state to be null when there is no buffer
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 21 Feb 2019 05:28:17 +0000 (14:28 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2019 10:00:22 +0000 (19:00 +0900)
Change-Id: If135fe5b8c8b73b4af5a34abc578ef78a220bcb4

src/bin/e_hwc_windows.c

index 2d8e269323b562b92482a273d61e923a74b6aa2f..1dc717f51cfd2f65d296b53e3b555735ba7521e9 100644 (file)
@@ -1605,6 +1605,13 @@ _e_hwc_windows_visible_windows_list_get(E_Hwc *hwc)
              continue;
           }
 
+        E_Comp_Wl_Buffer *buffer = _e_hwc_windows_comp_wl_buffer_get(hwc_window);
+        if (!buffer || !buffer->tbm_surface)
+          {
+             e_hwc_window_state_set(hwc_window, E_HWC_WINDOW_STATE_NONE, EINA_TRUE);
+             continue;
+          }
+
         if (e_hwc_window_is_video(hwc_window))
           {
             if (!e_client_video_tbm_surface_get(ec))