elementary: Update ecore wayland window geometry

As Elementary handles the window border theme, we can more accurately
set ecore_wl2 window geometry from here. The window geometry is
defined as the "visible bounds" from the user's perspective, so the
values we set here should come from the theme.

@fix

ref T2919

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-12-07 15:34:19 -05:00
parent c5c228d5be
commit 94996d6952
1 changed files with 2 additions and 4 deletions

View File

@ -1267,16 +1267,14 @@ _elm_win_opaque_update(Elm_Win_Data *sd)
{
ecore_evas_geometry_get(sd->ee, NULL, NULL, &ow, &oh);
ecore_wl2_window_opaque_region_set(sd->wl.win, 0, 0, ow, oh);
/* TODO */
/* ecore_wl_window_update_location(sd->wl.win, 0, 0); */
ecore_wl2_window_geometry_set(sd->wl.win, 0, 0, ow, oh);
return;
}
edje_object_part_geometry_get(sd->frame_obj, "elm.spacer.opaque",
&ox, &oy, &ow, &oh);
ecore_wl2_window_opaque_region_set(sd->wl.win, ox, oy, ow, oh);
/* TODO */
/* ecore_wl_window_update_location(sd->wl.win, ox, oy); */
ecore_wl2_window_geometry_set(sd->wl.win, ox, oy, ow, oh);
}
#endif