elementary: Don't update opaque/input regions if not visible
authorChris Michael <cp.michael@samsung.com>
Tue, 28 Feb 2017 16:29:24 +0000 (11:29 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 28 Feb 2017 16:29:24 +0000 (11:29 -0500)
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>
src/lib/elementary/efl_ui_win.c

index 73f2284..647de13 100644 (file)
@@ -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)