aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-07-27 08:08:00 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-27 08:08:00 -0400
commitbf414d8c542db32cb85d41dcbc88f97b38319474 (patch)
tree30e02a0b2861017ecf46a828890ad9f50d91785b /src/lib/elementary
parentelm: Fix extra mouse,in events in layout_content_unset (diff)
downloadefl-bf414d8c542db32cb85d41dcbc88f97b38319474.tar.gz
elementary: Avoid possibly setting opaque region twice
Previously, if the window had no frame object, then this could would have been setting opaque region twice (for the alpha case). We can avoid this if we move the alpha check to below the frame check. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_win.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index e6248b3ebe..3021c972db 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1303,8 +1303,6 @@ _elm_win_opaque_update(Efl_Ui_Win_Data *sd)
wdata = sd->ee->engine.data;
alpha = ecore_evas_alpha_get(sd->ee);
- if (alpha)
- ecore_wl2_window_opaque_region_set(sd->wl.win, 0, 0, 0, 0);
if (sd->fullscreen || (!sd->frame_obj))
{
ecore_evas_geometry_get(sd->ee, NULL, NULL, &ow, &oh);
@@ -1325,6 +1323,9 @@ _elm_win_opaque_update(Efl_Ui_Win_Data *sd)
&wdata->content.w, &wdata->content.h);
if (!alpha)
ecore_wl2_window_opaque_region_set(sd->wl.win, ox, oy, ow, oh);
+ else
+ ecore_wl2_window_opaque_region_set(sd->wl.win, 0, 0, 0, 0);
+
ecore_wl2_window_geometry_set(sd->wl.win, ox, oy, ow, oh);
ecore_wl2_window_input_region_set(sd->wl.win, ox, oy, ow, oh);
}