forked from enlightenment/enlightenment
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:
parent
2acdd3f3e2
commit
87ef25f21b
|
@ -129,7 +129,7 @@ e_smart_randr_virtual_size_calc(Evas_Object *obj)
|
||||||
free(crtcs);
|
free(crtcs);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((vw == 0) || (vh == 0))
|
if ((vw == 0) && (vh == 0))
|
||||||
{
|
{
|
||||||
/* by default, set virtual size to the current screen size */
|
/* by default, set virtual size to the current screen size */
|
||||||
ecore_x_randr_screen_current_size_get(root, &vw, &vh, NULL, NULL);
|
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;
|
Eina_List *l = NULL;
|
||||||
Evas_Object *mon;
|
Evas_Object *mon;
|
||||||
|
|
||||||
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
/* try to get the smart data */
|
/* try to get the smart data */
|
||||||
if (!(sd = data)) return;
|
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;
|
Eina_List *l = NULL;
|
||||||
Evas_Object *mon;
|
Evas_Object *mon;
|
||||||
|
|
||||||
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
/* try to get the smart data */
|
/* try to get the smart data */
|
||||||
if (!(sd = data)) return;
|
if (!(sd = data)) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue