discomfitor pushed a commit to branch master.

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

commit f4023fc6c1f877038bbb6228acb5f32081332900
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Feb 29 08:12:40 2016 -0500

    do not set XCURSOR_PATH variable if re-setting existing value
---
 src/bin/e_xsettings.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/bin/e_xsettings.c b/src/bin/e_xsettings.c
index 87bd062..f71f618 100644
--- a/src/bin/e_xsettings.c
+++ b/src/bin/e_xsettings.c
@@ -565,11 +565,9 @@ _e_xsettings_cursor_path_set(void)
    path = getenv("XCURSOR_PATH");
    if (path)
      {
-        if (!strstr(path, buf))
-          {
-             snprintf(env, sizeof(env), "%s:%s", buf, path);
-             path = env;
-          }
+        if (strstr(path, buf)) return;
+        snprintf(env, sizeof(env), "%s:%s", buf, path);
+        path = env;
      }
    else
      {

-- 


Reply via email to