princeamd pushed a commit to branch enlightenment-0.17.

commit 92215e3b9d3cd4aa191846d933e38b7b587717f2
Author: Christopher Michael <[email protected]>
Date:   Tue Feb 19 10:58:48 2013 +0000

    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 <[email protected]>
    
    SVN revision: 84192
    Signed-off-by: Deon Thomas <[email protected]>
---
 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 c8305ca..cd31b21 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;
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to