summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortest-tools <test-tools>2006-10-23 13:11:30 +0000
committertest-tools <test-tools>2006-10-23 13:11:30 +0000
commitea3ce1dbbe7776e079539aac71c5d37c3ee33c40 (patch)
treee79d5e3ba9d4774a94cf2e56d7eb3f4aac905e01 /src
parentcce2531662810bc98bafac87789e3b81ee26bae0 (diff)
downloadberyl-manager-ea3ce1dbbe7776e079539aac71c5d37c3ee33c40.tar.gz
beryl-manager-ea3ce1dbbe7776e079539aac71c5d37c3ee33c40.tar.bz2
beryl-manager: Fixed #570
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 27598a3..e7dbebd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -479,13 +479,14 @@ void killWM()
if (strncmp(cp,"DISPLAY=",8)==0)
{
//might be killable
- gchar * md = displayname;
- if (strcmp(cp+8,md)==0)
+ gchar * md = display_part(cp+8);
+ if (strcmp(md,displayname)==0)
{
//on same display, go ahead kill
if (kill(pid,SIGTERM)!=-1)
killed++;
}
+ g_free(md);
}
}
g_free(e);