_reset_composition_types: reset grabbed_layer_zpos for unvis hwc_windows 74/165374/2
authorKonstantin Drabeniuk <k.drabeniuk@samsung.com>
Thu, 28 Dec 2017 09:38:30 +0000 (11:38 +0200)
committerKonstantin Drabeniuk <k.drabeniuk@samsung.com>
Thu, 28 Dec 2017 11:20:49 +0000 (13:20 +0200)
Change-Id: If97349f35dc2c9425283c74e908126fc5b3b6424
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
src/tdm_exynos_display.c

index ba67fa3cca96c8f9628f8c0426e5435dac877058..c807d821bcb2c88ee48fdfe7662ed9936eb6e93c 100644 (file)
@@ -2222,9 +2222,10 @@ _reset_composition_types(struct list_head *hwc_window_list)
        tdm_exynos_hwc_window_data *hwc_window_data = NULL;
 
        LIST_FOR_EACH_ENTRY(hwc_window_data, hwc_window_list, link) {
-               if (hwc_window_data->client_type == TDM_COMPOSITION_NONE)
+               if (hwc_window_data->client_type == TDM_COMPOSITION_NONE) {
                        hwc_window_data->validated_type = TDM_COMPOSITION_NONE;
-               else
+                       hwc_window_data->grabbed_layer_zpos = -1;
+               } else
                        hwc_window_data->validated_type = TDM_COMPOSITION_CLIENT;
 
                hwc_window_data->assigned_layer_zpos = -1;