e_hwc_window_queue: unset user of queue when target window is set device 40/218540/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 25 Nov 2019 07:56:39 +0000 (16:56 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 26 Nov 2019 10:20:03 +0000 (19:20 +0900)
Change-Id: I828e34ddafaa7d595d65267ba77f74c53e6609a8

src/bin/e_hwc_window_queue.c

index 9143b8eaf3dbce1b2c20a935b0b681657efd381e..953fb00b67c8cd6cd8cef11fef60d141bb4639e0 100644 (file)
@@ -1081,13 +1081,6 @@ _e_hwc_window_queue_cb_accepted_state_set(void *data, E_Hwc_Window *hwc_window)
    state = e_hwc_window_accepted_state_get(hwc_window);
 
    if ((state == E_HWC_WINDOW_STATE_DEVICE))
-     {
-        if (e_hwc_window_is_target(hwc_window)) return;
-
-        if(queue->state == E_HWC_WINDOW_QUEUE_STATE_SET_WAITING_BUFFER)
-          _e_hwc_window_queue_set(queue);
-     }
-   else if ((state == E_HWC_WINDOW_STATE_CLIENT) || (state == E_HWC_WINDOW_STATE_NONE))
      {
         if (e_hwc_window_is_target(hwc_window))
           {
@@ -1099,14 +1092,19 @@ _e_hwc_window_queue_cb_accepted_state_set(void *data, E_Hwc_Window *hwc_window)
              if (queue->user)
                e_hwc_window_constraints_reset(queue->user);
           }
-        else
-          {
-             /* if buffer of queue is commited, hwc_window should be set by Device Type */
-             if (!hwc_window->buffer.tsurface) return;
 
-             if (e_hwc_window_queue_buffer_find(queue, hwc_window->buffer.tsurface))
-               e_hwc_window_constraints_reset(hwc_window);
-          }
+        if(queue->state == E_HWC_WINDOW_QUEUE_STATE_SET_WAITING_BUFFER)
+          _e_hwc_window_queue_set(queue);
+     }
+   else if ((state == E_HWC_WINDOW_STATE_CLIENT) || (state == E_HWC_WINDOW_STATE_NONE))
+     {
+        if (e_hwc_window_is_target(hwc_window)) return;
+
+        /* if buffer of queue is commited, hwc_window should be set by Device Type */
+        if (!hwc_window->buffer.tsurface) return;
+
+        if (e_hwc_window_queue_buffer_find(queue, hwc_window->buffer.tsurface))
+          e_hwc_window_constraints_reset(hwc_window);
      }
 }