forked from enlightenment/efl
ecore-evas-wayland: Set ee->draw_ok appropriately based on visibility
Summary: A previous code change to the common code which processes updates is relying on having the ecore_evas->draw_ok flag set in order to process updates. This change makes sure that ee->draw_ok is in sync with canvas visibility. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
37718b2cf6
commit
210c6b9b7c
|
@ -362,6 +362,8 @@ _ecore_evas_wl_show(Ecore_Evas *ee)
|
|||
|
||||
if (ee->visible) return;
|
||||
ee->visible = 1;
|
||||
ee->should_be_visible = 1;
|
||||
ee->draw_ok = EINA_TRUE;
|
||||
if (ee->func.fn_show) ee->func.fn_show(ee);
|
||||
}
|
||||
|
||||
|
@ -397,6 +399,7 @@ _ecore_evas_wl_hide(Ecore_Evas *ee)
|
|||
if (!ee->visible) return;
|
||||
ee->visible = 0;
|
||||
ee->should_be_visible = 0;
|
||||
ee->draw_ok = EINA_FALSE;
|
||||
|
||||
if (ee->func.fn_hide) ee->func.fn_hide(ee);
|
||||
}
|
||||
|
|
|
@ -357,6 +357,8 @@ _ecore_evas_wl_show(Ecore_Evas *ee)
|
|||
|
||||
if (ee->visible) return;
|
||||
ee->visible = 1;
|
||||
ee->should_be_visible = 1;
|
||||
ee->draw_ok = EINA_TRUE;
|
||||
if (ee->func.fn_show) ee->func.fn_show(ee);
|
||||
}
|
||||
|
||||
|
@ -392,6 +394,7 @@ _ecore_evas_wl_hide(Ecore_Evas *ee)
|
|||
if (!ee->visible) return;
|
||||
ee->visible = 0;
|
||||
ee->should_be_visible = 0;
|
||||
ee->draw_ok = EINA_FALSE;
|
||||
|
||||
if (ee->func.fn_hide) ee->func.fn_hide(ee);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue