From 0ab246155dd1aa6c16c7524bfc232f5a7614a225 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 1 Oct 2012 14:22:51 +0000 Subject: [PATCH] E (RandR): Use e_layout_child_geometry_get for rotate snap. SVN revision: 77275 --- src/modules/conf_randr/e_smart_monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index db1eb2787..2c81c5030 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -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))