summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 9d400dd83..db4052de3 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -690,7 +690,7 @@ static Window *LocalAllocateWindow(
}
const Window *wt = FindWindowById(WC_MAIN_TOOLBAR, 0);
- w->top = max(w->top, (wt == NULL || w == wt) ? 0 : wt->height);
+ w->top = max(w->top, (wt == NULL || w == wt || y == 0) ? 0 : wt->height);
w->left = max(w->left, 0);
SetWindowDirty(w);