discomfitor pushed a commit to branch master.

commit d2b7895f3d4fd42cc65394df9733b37f298d7239
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Jun 18 15:31:09 2013 +0100

    make e_exec work for desktops when orig_path is not present but name is
---
 src/bin/e_exec.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_exec.c b/src/bin/e_exec.c
index fdfa223..178ba2f 100644
--- a/src/bin/e_exec.c
+++ b/src/bin/e_exec.c
@@ -236,7 +236,7 @@ e_exec_phony(E_Border *bd)
    if (bd->desktop)
      {
         efreet_desktop_ref(bd->desktop);
-        inst->key = eina_stringshare_add(bd->desktop->orig_path);
+        inst->key = eina_stringshare_add(bd->desktop->orig_path ?: 
bd->desktop->name);
      }
    else if (bd->client.icccm.command.argc)
      {
@@ -574,7 +574,7 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char 
*exec, int remaining)
      {
         efreet_desktop_ref(desktop);
         inst->desktop = desktop;
-        inst->key = eina_stringshare_add(desktop->orig_path);
+        inst->key = eina_stringshare_add(desktop->orig_path ?: desktop->name);
      }
    else
      inst->key = eina_stringshare_add(exec);
@@ -1205,7 +1205,7 @@ EAPI const Eina_List *
 e_exec_desktop_instances_find(const Efreet_Desktop *desktop)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(desktop, NULL);
-   return eina_hash_find(e_exec_instances, desktop->orig_path);
+   return eina_hash_find(e_exec_instances, desktop->orig_path ?: 
desktop->name);
 }
 
 EAPI const Eina_Hash *

-- 

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

Build for Windows Store.

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

Reply via email to