Skip to content

Commit

Permalink
When cascading, include the border size for #747.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Sep 17, 2023
1 parent 130e835 commit 6f4a7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wmmgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1573,8 +1573,8 @@ void YWindowManager::getCascadePlace(YFrameWindow *frame, int &lastX, int &lastY
y = lastY;
y -= min(frame->borderYN(), int(topSideVerticalOffset));

lastX += wsTitleBar;
lastY += wsTitleBar;
lastX += wsTitleBar + frame->borderXN();
lastY += wsTitleBar + frame->borderYN();
if (int(y + h) >= My) {
y = my;
lastY = wsTitleBar;
Expand Down

0 comments on commit 6f4a7b4

Please sign in to comment.