yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=c4ac1285eb1aa2c7140e7af867508a091df7fc09

commit c4ac1285eb1aa2c7140e7af867508a091df7fc09
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Sun Dec 13 17:58:56 2015 +0200

    Fix borders showing
    
    Use case: object is selected, start dragging from a factory.
    If this object must be bordered as a drop target -
    there was an issue with drawing both borders.
---
 src/bin/gui/editor.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/gui/editor.c b/src/bin/gui/editor.c
index 104c1a3..251f66d 100644
--- a/src/bin/gui/editor.c
+++ b/src/bin/gui/editor.c
@@ -388,6 +388,7 @@ _wdg_border_draw(const Gui_Widget *wdg, Eina_Bool 
visibility, int border_type_co
    static Eo *prev_obj = NULL;
    static Evas_Coord prev_ox = 0, prev_oy = 0, prev_ow = 0, prev_oh = 0;
    static Eina_Bool prev_visibility = EINA_FALSE;
+   static int prev_border_type_color = -1;
 
    /* This is made, to have opportunity to pass NULL and hide border.*/
    if (obj)
@@ -410,7 +411,8 @@ _wdg_border_draw(const Gui_Widget *wdg, Eina_Bool 
visibility, int border_type_co
         lh = oh;
         /* Redraw border only if coords or object were changed. */
         if ((obj != prev_obj) || (ox != prev_ox) || (oy != prev_oy) ||
-            (ow != prev_ow) || (oh != prev_oh) || (prev_visibility != 
visibility))
+            (ow != prev_ow) || (oh != prev_oh) || (prev_visibility != 
visibility) ||
+            (prev_border_type_color != border_type_color))
           {
              prev_obj = obj;
              prev_ox = ox;
@@ -418,6 +420,7 @@ _wdg_border_draw(const Gui_Widget *wdg, Eina_Bool 
visibility, int border_type_co
              prev_ow = ow;
              prev_oh = oh;
              prev_visibility = visibility;
+             prev_border_type_color = border_type_color;
           }
         else
           {

-- 


Reply via email to