discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=aefaaea57bd35a939d2db700706f711e2803855f

commit aefaaea57bd35a939d2db700706f711e2803855f
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Mon Jan 20 15:12:40 2014 -0500

    unify client borderless checks to use util function
---
 src/bin/e_client.c          | 2 +-
 src/bin/e_comp.c            | 2 +-
 src/bin/e_comp_object.c     | 4 ++--
 src/bin/e_int_client_menu.c | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index f8ce771..c31fc28 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -1989,7 +1989,7 @@ _e_client_frame_update(E_Client *ec)
      bordername = "borderless";
    else if (ec->bordername)
      bordername = ec->bordername;
-   else if ((ec->mwm.borderless) || (ec->borderless))
+   else if (ec->mwm.borderless)
      bordername = "borderless";
    else if (((ec->icccm.transient_for != 0) ||
              (ec->dialog)) &&
diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index bc75c26..d626e8f 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -621,7 +621,7 @@ 
_e_comp_shapes_update_comp_client_shape_comp_helper(E_Client *ec, Eina_Tiler *tb
      }
 #endif
 
-   if ((!ec->borderless) && (e_util_strcmp(ec->border.name, "borderless")))
+   if (!e_client_util_borderless(ec))
      {
         /* add the frame */
         eina_tiler_rect_add(tb, &(Eina_Rectangle){ec->x, ec->y, ec->w, ec->h});
diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 8f683a0..be84bc3 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -139,7 +139,7 @@ _e_comp_object_do_shadow(E_Comp_Object *cw)
      {
         if (cw->ec->shaped) return 0;
         if (cw->frame_object) return 0;
-        if (cw->ec->borderless || (!e_util_strcmp(cw->ec->border.name, 
"borderless")))
+        if (e_client_util_borderless(cw->ec))
           return 0;
      }
    return 1;
@@ -313,7 +313,7 @@ _e_comp_object_shadow_client_match(const E_Client *ec, 
E_Comp_Match *m)
     {
        int borderless = 0;
 
-       if ((ec->mwm.borderless) || (ec->borderless))
+       if (e_client_util_borderless(ec))
          borderless = 1;
        if (!(((m->borderless == -1) && (!borderless)) ||
              ((m->borderless == 1) && (borderless))))
diff --git a/src/bin/e_int_client_menu.c b/src/bin/e_int_client_menu.c
index 31d94ec..5b4d659 100644
--- a/src/bin/e_int_client_menu.c
+++ b/src/bin/e_int_client_menu.c
@@ -124,7 +124,7 @@ e_int_client_menu_create(E_Client *ec)
         if (ec->desktop)
           e_util_desktop_menu_item_icon_add(ec->desktop, 16, mi);
      }
-   borderless = ec->borderless || (!ec->border.name) || 
(!e_util_strcmp("borderless", ec->border.name));
+   borderless = e_client_util_borderless(ec);
 
    mi = e_menu_item_new(m);
    e_menu_item_label_set(mi, _("Window"));

-- 


Reply via email to