summaryrefslogtreecommitdiff
path: root/src/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/group.c')
-rw-r--r--src/group.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/group.c b/src/group.c
index 80ab89e..38b0fd3 100644
--- a/src/group.c
+++ b/src/group.c
@@ -443,6 +443,10 @@ groups_merge (rp_group *from, rp_group *to)
rp_window_elem *cur;
struct list_head *iter, *tmp;
+ /* Merging a group with itself makes no sense. */
+ if (from == to)
+ return;
+
/* Move the unmapped windows. */
list_for_each_safe_entry (cur, iter, tmp, &from->unmapped_windows, node)
{