E (RandR): And get the proper mode based on rotation also so that

resize limiting functions propertly.



SVN revision: 77294
This commit is contained in:
Christopher Michael 2012-10-02 08:58:16 +00:00
parent 436323bf59
commit d6e1350427
1 changed files with 9 additions and 3 deletions

View File

@ -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];