Skip to content

Commit

Permalink
Look at resize flags when setting resize arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
jscipione committed Jan 25, 2013
1 parent 3071859 commit feb6002
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/servers/app/decorator/DefaultWindowBehaviour.cpp
Expand Up @@ -1149,6 +1149,15 @@ DefaultWindowBehaviour::_SetNowAllowedCursor()
void
DefaultWindowBehaviour::_SetResizeCursor(int8 horizontal, int8 vertical)
{
if ((fWindow->Flags() & B_NOT_RESIZABLE) != 0)
horizontal = vertical = NONE;
else {
if ((fWindow->Flags() & B_NOT_H_RESIZABLE) != 0)
horizontal = NONE;
if ((fWindow->Flags() & B_NOT_V_RESIZABLE) != 0)
vertical = NONE;
}

fDesktop->SetManagementCursor(_ResizeCursorFor(horizontal, vertical));
}

Expand Down Expand Up @@ -1213,11 +1222,6 @@ DefaultWindowBehaviour::_SetBorderResizeCursor(BPoint where)
break;
}

if ((fWindow->Flags() & B_NOT_H_RESIZABLE) != 0)
horizontal = NONE;
if ((fWindow->Flags() & B_NOT_V_RESIZABLE) != 0)
vertical = NONE;

_SetResizeCursor(horizontal, vertical);
}

Expand Down

0 comments on commit feb6002

Please sign in to comment.