forked from enlightenment/efl
parent
2760afbb0e
commit
c84a4e5a5f
|
@ -1269,18 +1269,24 @@ static void
|
||||||
_elm_win_opaque_update(Elm_Win_Data *sd)
|
_elm_win_opaque_update(Elm_Win_Data *sd)
|
||||||
{
|
{
|
||||||
int ox, oy, ow, oh;
|
int ox, oy, ow, oh;
|
||||||
|
Eina_Bool alpha;
|
||||||
|
|
||||||
|
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)
|
if (sd->fullscreen)
|
||||||
{
|
{
|
||||||
ecore_evas_geometry_get(sd->ee, NULL, NULL, &ow, &oh);
|
ecore_evas_geometry_get(sd->ee, NULL, NULL, &ow, &oh);
|
||||||
ecore_wl2_window_opaque_region_set(sd->wl.win, 0, 0, ow, oh);
|
if (!alpha)
|
||||||
|
ecore_wl2_window_opaque_region_set(sd->wl.win, 0, 0, ow, oh);
|
||||||
ecore_wl2_window_geometry_set(sd->wl.win, 0, 0, ow, oh);
|
ecore_wl2_window_geometry_set(sd->wl.win, 0, 0, ow, oh);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
edje_object_part_geometry_get(sd->frame_obj, "elm.spacer.opaque",
|
edje_object_part_geometry_get(sd->frame_obj, "elm.spacer.opaque",
|
||||||
&ox, &oy, &ow, &oh);
|
&ox, &oy, &ow, &oh);
|
||||||
ecore_wl2_window_opaque_region_set(sd->wl.win, ox, oy, ow, oh);
|
if (!alpha)
|
||||||
|
ecore_wl2_window_opaque_region_set(sd->wl.win, ox, oy, ow, oh);
|
||||||
ecore_wl2_window_geometry_set(sd->wl.win, ox, oy, ow, oh);
|
ecore_wl2_window_geometry_set(sd->wl.win, ox, oy, ow, oh);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue