From 87ef25f21b0b509bf58b1defcfd67985622773a1 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 19 Feb 2013 10:58:48 +0000 Subject: [PATCH] When calculating virtual size, we only need to fetch "screen_current_size_get" if both vw & vh are 0. Signed-off-by: Christopher Michael SVN revision: 84192 --- src/modules/conf_randr/e_smart_randr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/conf_randr/e_smart_randr.c b/src/modules/conf_randr/e_smart_randr.c index c8305ca5a..cd31b21f5 100644 --- a/src/modules/conf_randr/e_smart_randr.c +++ b/src/modules/conf_randr/e_smart_randr.c @@ -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;