summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-02-28 11:29:24 -0500
committerChris Michael <cp.michael@samsung.com>2017-02-28 11:29:24 -0500
commite725c0db95967d0488111d8db44c86e156bee4f6 (patch)
treeac324187985cffca3bb92372f9c4649e52baa499 /src/lib/elementary
parente6b26d2279059834da42797331ba5fb3f388caf8 (diff)
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>
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_win.c2
1 files changed, 2 insertions, 0 deletions
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)
1371 Ecore_Evas_Engine_Wl_Data *wdata; 1371 Ecore_Evas_Engine_Wl_Data *wdata;
1372 1372
1373 if (!sd->wl.win) return; 1373 if (!sd->wl.win) return;
1374 if (!sd->shown) return;
1375
1374 wdata = sd->ee->engine.data; 1376 wdata = sd->ee->engine.data;
1375 alpha = ecore_evas_alpha_get(sd->ee) || force_alpha; 1377 alpha = ecore_evas_alpha_get(sd->ee) || force_alpha;
1376 if (sd->fullscreen || !sd->frame_obj) 1378 if (sd->fullscreen || !sd->frame_obj)