Skip to content

Commit

Permalink
Revert "When LimitPosition is false, you can drag maximized windows o…
Browse files Browse the repository at this point in the history
…ff-screen."
  • Loading branch information
gijsbers committed Jul 24, 2024
1 parent 842aebe commit 3711e73
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() && limitPosition)) {
if (EdgeResistance == 10000 || isMaximizedHoriz()) {
if (newX + int(width()) + n * borderX() > Mx)
newX = Mx - int(width()) - n * borderX();
if (newX < mx)
newX = mx;
}
if (EdgeResistance == 10000 || (isMaximizedVert() && limitPosition)) {
if (EdgeResistance == 10000 || isMaximizedVert()) {
if (newY + int(height()) + n * borderY() > My)
newY = My - int(height()) - n * borderY();
if (newY < my)
Expand Down

0 comments on commit 3711e73

Please sign in to comment.