summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/core/fe-windows.c')
-rw-r--r--src/fe-common/core/fe-windows.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c
index 1e754347..0103c260 100644
--- a/src/fe-common/core/fe-windows.c
+++ b/src/fe-common/core/fe-windows.c
@@ -93,7 +93,8 @@ static void windows_pack(int removed_refnum)
for (refnum = removed_refnum+1;; refnum++) {
window = window_find_refnum(refnum);
- if (window == NULL) break;
+ if (window == NULL || window->sticky_refnum)
+ break;
window_set_refnum(window, refnum-1);
}