From e725c0db95967d0488111d8db44c86e156bee4f6 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 28 Feb 2017 11:29:24 -0500 Subject: 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 --- src/lib/elementary/efl_ui_win.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/elementary') diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 73f22849a1..647de136fb 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -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) -- cgit v1.2.1