Skip to content

Commit

Permalink
When LimitPosition is false, you can drag maximized windows off-scree…
Browse files Browse the repository at this point in the history
…n and closes issue #780.
  • Loading branch information
gijsbers committed Jul 24, 2024
1 parent 46e93f2 commit 842aebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/movesize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,13 @@ void YFrameWindow::handleMoveMouse(const XMotionEvent &motion, int &newX, int &n
newY += EdgeResistance;
}
}
if (EdgeResistance == 10000 || isMaximizedHoriz()) {
if (EdgeResistance == 10000 || (isMaximizedHoriz() && limitPosition)) {
if (newX + int(width()) + n * borderX() > Mx)
newX = Mx - int(width()) - n * borderX();
if (newX < mx)
newX = mx;
}
if (EdgeResistance == 10000 || isMaximizedVert()) {
if (EdgeResistance == 10000 || (isMaximizedVert() && limitPosition)) {
if (newY + int(height()) + n * borderY() > My)
newY = My - int(height()) - n * borderY();
if (newY < my)
Expand Down

0 comments on commit 842aebe

Please sign in to comment.