summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Gholami Rudi <aliqrudi@gmail.com>2008-10-11 09:40:12 +0330
committerShawn <sabetts@juicebox.(none)>2008-10-12 17:11:55 -0700
commit656481bd1b052137826d041347bd0a93592b96a0 (patch)
treef2ea7621b18a43036115495f4a25e666ad1606f7
parent4a180cb969833289eb2dd46548d594f6f37c8a87 (diff)
downloadratpoison-656481bd1b052137826d041347bd0a93592b96a0.zip
run switch group hooks after gdelete
When current group is deleted, a new group is selected but switch group hooks are not run. This patch calls set_current_group() which runs those hooks.
-rw-r--r--src/group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group.c b/src/group.c
index 4065db9..1c4329b 100644
--- a/src/group.c
+++ b/src/group.c
@@ -559,7 +559,7 @@ group_delete_group (rp_group *g)
if (g == rp_current_group)
{
rp_group *next = group_last_group ();
- set_current_group_1 (next ? next : group_next_group ());
+ set_current_group (next ? next : group_next_group ());
}
list_del (&(g->node));