When calculating virtual size, we only need to fetch

"screen_current_size_get" if both vw & vh are 0.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84192
This commit is contained in:
Christopher Michael 2013-02-19 10:58:48 +00:00 committed by Christopher Michael
parent 2acdd3f3e2
commit 87ef25f21b
1 changed files with 5 additions and 1 deletions

View File

@ -129,7 +129,7 @@ e_smart_randr_virtual_size_calc(Evas_Object *obj)
free(crtcs);
}
if ((vw == 0) || (vh == 0))
if ((vw == 0) && (vh == 0))
{
/* by default, set virtual size to the current screen size */
ecore_x_randr_screen_current_size_get(root, &vw, &vh, NULL, NULL);
@ -423,6 +423,8 @@ _e_smart_randr_grid_cb_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
Eina_List *l = NULL;
Evas_Object *mon;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* try to get the smart data */
if (!(sd = data)) return;
@ -442,6 +444,8 @@ _e_smart_randr_grid_cb_resize(void *data, Evas *evas EINA_UNUSED, Evas_Object *o
Eina_List *l = NULL;
Evas_Object *mon;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* try to get the smart data */
if (!(sd = data)) return;