E (RandR): Use e_layout_child_geometry_get for rotate snap.

SVN revision: 77275
This commit is contained in:
Christopher Michael 2012-10-01 14:22:51 +00:00
parent 4f02f86438
commit 0ab246155d
1 changed files with 2 additions and 2 deletions

View File

@ -958,8 +958,8 @@ _e_smart_monitor_rotate_snap(Evas_Object *obj)
if (!(sd = evas_object_smart_data_get(obj))) return;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
e_layout_coord_canvas_to_virtual(sd->o_layout, w, h, &nw, &nh);
/* get the object geometry */
e_layout_child_geometry_get(obj, NULL, NULL, &nw, &nh);
if ((sd->orientation == ECORE_X_RANDR_ORIENTATION_ROT_90) ||
(sd->orientation == ECORE_X_RANDR_ORIENTATION_ROT_270))