forked from enlightenment/efl
elementary: Don't update opaque/input regions if not visible
Small patch to reduce calls to setting opaque/input regions in wayland. Basically, if the window is not shown then there is no point in updating these regions until such time that the window is actually visible and the regions will get committed. ref T5226 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
e6b26d2279
commit
e725c0db95
|
@ -1371,6 +1371,8 @@ _elm_win_opaque_update(Efl_Ui_Win_Data *sd, Eina_Bool force_alpha)
|
|||
Ecore_Evas_Engine_Wl_Data *wdata;
|
||||
|
||||
if (!sd->wl.win) return;
|
||||
if (!sd->shown) return;
|
||||
|
||||
wdata = sd->ee->engine.data;
|
||||
alpha = ecore_evas_alpha_get(sd->ee) || force_alpha;
|
||||
if (sd->fullscreen || !sd->frame_obj)
|
||||
|
|
Loading…
Reference in New Issue