forked from enlightenment/enlightenment
Backport: 87ef25f
:: 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 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
This commit is contained in:
parent
9ab072cd4e
commit
92215e3b9d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue