summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shelf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shelf.c b/shelf.c
index e450f1a..e2059aa 100644
--- a/shelf.c
+++ b/shelf.c
@@ -285,7 +285,10 @@ shelfRemoveWindowFromList (ShelfedWindowInfo *info)
for (run = ss->shelfedWindows; run->next; run = run->next)
{
if (run->next == info)
+ {
run->next = info->next;
+ break;
+ }
}
}
}