summaryrefslogtreecommitdiff
path: root/src/group.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-06-02 22:49:35 +0000
committersabetts <sabetts>2003-06-02 22:49:35 +0000
commitbfc0e82b9a7638e84a5d92e03d07b5614f47abac (patch)
tree23a7ced773e32b48b6c8a1665aec15d9c55ad925 /src/group.c
parentca80e91cd40658b5cee1afaf4c559cabf736e6fa (diff)
downloadratpoison-bfc0e82b9a7638e84a5d92e03d07b5614f47abac.zip
* src/group.c (groups_merge): don't merge a group with itself.
* src/bar.c (draw_mark): abort if mark_end is the beginning of the line or the start and end of the mark is the same.
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)
{