princeamd pushed a commit to branch enlightenment-0.17.

commit 5e882d1275f23cb0dc7aa000518e403ff26f096a
Author: Christopher Michael <[email protected]>
Date:   Tue Feb 19 10:55:54 2013 +0000

    Backport: 148cdc9 :: Add geometry to smart_data struct. Check geometry 
changes in smart_move and smart_resize.
    
    Signed-off-by: Christopher Michael <[email protected]>
    
    SVN revision: 84132
    Signed-off-by: Deon Thomas <[email protected]>
---
 src/modules/conf_randr/e_smart_monitor.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/modules/conf_randr/e_smart_monitor.c 
b/src/modules/conf_randr/e_smart_monitor.c
index 59e1fca..ed79bde 100644
--- a/src/modules/conf_randr/e_smart_monitor.c
+++ b/src/modules/conf_randr/e_smart_monitor.c
@@ -9,6 +9,9 @@ struct _E_Smart_Data
    /* canvas variable */
    Evas *evas;
 
+   /* geometry */
+   int x, y, w, h;
+
    /* crtc config */
    E_Randr_Crtc_Config *crtc;
 
@@ -114,6 +117,12 @@ _e_smart_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
 
    /* try to get the objects smart data */
    if (!(sd = evas_object_smart_data_get(obj))) return;
+
+   /* if there is no position change, then get out */
+   if ((sd->x == x) && (sd->y == y)) return;
+
+   sd->x = x;
+   sd->y = y;
 }
 
 static void 
@@ -123,6 +132,12 @@ _e_smart_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord 
h)
 
    /* try to get the objects smart data */
    if (!(sd = evas_object_smart_data_get(obj))) return;
+
+   /* if there is no size change, then get out */
+   if ((sd->w == w) && (sd->h == h)) return;
+
+   sd->w = w;
+   sd->h = h;
 }
 
 static void 

-- 

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

Build for Windows Store.

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

Reply via email to