From 7d4d4f4b7215dfb2f0b9ced054caa37b8f193dd7 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 19 Sep 2006 00:02:40 +0000 Subject: [PATCH] This should fix the wrong icon in border bug. SVN revision: 25967 --- src/bin/e_apps.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index 0656b1fa1..d83f08d79 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -899,6 +899,7 @@ e_app_launch_id_pid_find(int launch_id, pid_t pid) { _e_apps_list = evas_list_remove_list(_e_apps_list, l); _e_apps_list = evas_list_prepend(_e_apps_list, a); +printf("e_app_launch_id_pid_find() - FOUND - %s\n", a->path); return a; } } @@ -927,7 +928,7 @@ e_app_border_find(E_Border *bd) E_OBJECT_CHECK_RETURN(a, NULL); E_OBJECT_TYPE_CHECK_RETURN(a, E_APP_TYPE, NULL); ok = 0; - if ((a->win_name) || (a->win_class) || (a->win_title) || (a->win_role)) + if ((a->win_name) || (a->win_class) || (a->win_title) || (a->win_role) || (a->exe)) { if ((a->win_name) && (a->win_class) && (bd->client.icccm.name) && (bd->client.icccm.class)) @@ -949,7 +950,7 @@ e_app_border_find(E_Border *bd) ((a->win_role) && (bd->client.icccm.window_role) && (e_util_glob_match(bd->client.icccm.window_role, a->win_role)))) ok++; if ( - (a->exe) && (bd->client.icccm.command.argv)) + (a->exe) && (bd->client.icccm.command.argv) && (bd->client.icccm.command.argv)) { char *ts, *p; @@ -965,7 +966,7 @@ e_app_border_find(E_Border *bd) } p++; } - if (!strcmp(a->exe, ts)) + if (!strcmp(ts, bd->client.icccm.command.argv[0])) ok++; } }