Skip to content

Commit

Permalink
ContainableFrame: apply insets to old rhs offset behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Jan 25, 2024
1 parent dcea566 commit 4e2181b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ private void applyChange(int x, int y, int width, int height, int oldX, int oldY

if (width > oldWidth
&& rect.getMaxX() > dpyBounds.getMaxX()
&& oldX + oldWidth + SCREEN_EDGE_CLOSE_DISTANCE > dpyBounds.getMaxX()
&& oldX + oldWidth <= dpyBounds.getMaxX())
&& (oldX + insets.left) + (oldWidth - (insets.left + insets.right)) + SCREEN_EDGE_CLOSE_DISTANCE > dpyBounds.getMaxX()
&& (oldX + insets.left) + (oldWidth - (insets.left + insets.right)) <= dpyBounds.getMaxX())
{
// attempt to retain the distance between us and the edge when shifting left
rect.x -= width - oldWidth;
Expand Down

0 comments on commit 4e2181b

Please sign in to comment.