summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-12-07 15:34:19 -0500
committerChris Michael <cp.michael@samsung.com>2015-12-07 15:34:19 -0500
commit2a85a53d142a44ac55a5ee7e838ea0f35e5a5b56 (patch)
tree18931e89bbd61652791513c9a3f561644a0d170c
parent0d8d486bfd72efc77c0c8912fb6afa69deb6c384 (diff)
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>
-rw-r--r--src/lib/elm_win.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 3fbe2bf6a..1f982c811 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -1267,16 +1267,14 @@ _elm_win_opaque_update(Elm_Win_Data *sd)
1267 { 1267 {
1268 ecore_evas_geometry_get(sd->ee, NULL, NULL, &ow, &oh); 1268 ecore_evas_geometry_get(sd->ee, NULL, NULL, &ow, &oh);
1269 ecore_wl2_window_opaque_region_set(sd->wl.win, 0, 0, ow, oh); 1269 ecore_wl2_window_opaque_region_set(sd->wl.win, 0, 0, ow, oh);
1270 /* TODO */ 1270 ecore_wl2_window_geometry_set(sd->wl.win, 0, 0, ow, oh);
1271 /* ecore_wl_window_update_location(sd->wl.win, 0, 0); */
1272 return; 1271 return;
1273 } 1272 }
1274 1273
1275 edje_object_part_geometry_get(sd->frame_obj, "elm.spacer.opaque", 1274 edje_object_part_geometry_get(sd->frame_obj, "elm.spacer.opaque",
1276 &ox, &oy, &ow, &oh); 1275 &ox, &oy, &ow, &oh);
1277 ecore_wl2_window_opaque_region_set(sd->wl.win, ox, oy, ow, oh); 1276 ecore_wl2_window_opaque_region_set(sd->wl.win, ox, oy, ow, oh);
1278 /* TODO */ 1277 ecore_wl2_window_geometry_set(sd->wl.win, ox, oy, ow, oh);
1279 /* ecore_wl_window_update_location(sd->wl.win, ox, oy); */
1280} 1278}
1281#endif 1279#endif
1282 1280