From d6e1350427b84be218a4fb93b56b9feba38bc6c3 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 2 Oct 2012 08:58:16 +0000 Subject: [PATCH] E (RandR): And get the proper mode based on rotation also so that resize limiting functions propertly. SVN revision: 77294 --- src/modules/conf_randr/e_smart_monitor.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index b2b1c1c2e..fb3c693c2 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -638,13 +638,19 @@ _e_smart_cb_resize_stop(void *data, Evas_Object *obj __UNUSED__, const char *emi /* get the object geometry */ if ((sd->orientation == ECORE_X_RANDR_ORIENTATION_ROT_90) || (sd->orientation == ECORE_X_RANDR_ORIENTATION_ROT_270)) - e_layout_child_geometry_get(mon, NULL, NULL, &oh, &ow); + { + e_layout_child_geometry_get(mon, NULL, NULL, &oh, &ow); + mode = _e_smart_monitor_resolution_get(sd, oh, ow); + } else if ((sd->orientation == ECORE_X_RANDR_ORIENTATION_ROT_0) || (sd->orientation == ECORE_X_RANDR_ORIENTATION_ROT_180)) - e_layout_child_geometry_get(mon, NULL, NULL, &ow, &oh); + { + e_layout_child_geometry_get(mon, NULL, NULL, &ow, &oh); + mode = _e_smart_monitor_resolution_get(sd, ow, oh); + } /* find the closest resolution to this one and snap to it */ - if ((mode = _e_smart_monitor_resolution_get(sd, ow, oh))) + if (mode) { char buff[1024];