Skip to content

Commit

Permalink
Revert Ctrl+Alt resizing/moving changes.
Browse files Browse the repository at this point in the history
This removes the solution with no convincing replacement,
and breaks most basic window management tasks such as raising a window when clicking it.

Please come back when you get the issues fixed and a real alternative to the "ugly" border highlighting.

This reverts hrev45197-45202.
  • Loading branch information
pulkomandy committed Jan 28, 2013
1 parent 1fbd0a5 commit 98b326d
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 432 deletions.
28 changes: 1 addition & 27 deletions src/servers/app/decorator/DefaultDecorator.cpp
Expand Up @@ -218,33 +218,7 @@ DefaultDecorator::RegionAt(BPoint where, int32& tab) const
if (region != REGION_NONE)
return region;

// check the left top corner
BRect leftTopLeft(fLeftBorder.left, fLeftBorder.top,
fLeftBorder.right, fLeftBorder.top + kBorderResizeLength);
BRect leftTopTop(fTopBorder.left, fTopBorder.top,
fTopBorder.left + kBorderResizeLength, fTopBorder.bottom);
if (leftTopLeft.Contains(where) || leftTopTop.Contains(where))
return REGION_LEFT_TOP_CORNER;

// check the left bottom corner
BRect leftBottomLeft(fLeftBorder.left,
fLeftBorder.bottom - kBorderResizeLength,
fLeftBorder.right, fLeftBorder.bottom);
BRect leftBottomBottom(fBottomBorder.left,
fBottomBorder.top, fBottomBorder.left + kBorderResizeLength,
fBottomBorder.bottom);
if (leftBottomLeft.Contains(where) || leftBottomBottom.Contains(where))
return REGION_LEFT_BOTTOM_CORNER;

// check the right top corner
BRect rightTopRight(fRightBorder.left, fRightBorder.top,
fRightBorder.right, fRightBorder.top + kBorderResizeLength);
BRect rightTopTop(fTopBorder.right - kBorderResizeLength, fTopBorder.top,
fTopBorder.right, fTopBorder.bottom);
if (rightTopRight.Contains(where) || rightTopTop.Contains(where))
return REGION_RIGHT_TOP_CORNER;

// check the right bottom resize corner
// check the resize corner
if (fTopTab->look == B_DOCUMENT_WINDOW_LOOK && fResizeRect.Contains(where))
return REGION_RIGHT_BOTTOM_CORNER;

Expand Down

0 comments on commit 98b326d

Please sign in to comment.