A call to SetSizeLimits() can change the window frame, so it's now updated, too (a separate FrameResized() message is sent anyway).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13742 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2ca990b801
commit
39d30137dc
@ -998,7 +998,9 @@ BWindow::SetSizeLimits(float minWidth, float maxWidth,
|
|||||||
if (fLink->FlushWithReply(code) == B_OK
|
if (fLink->FlushWithReply(code) == B_OK
|
||||||
&& code == SERVER_TRUE) {
|
&& code == SERVER_TRUE) {
|
||||||
// read the values that were really enforced on
|
// read the values that were really enforced on
|
||||||
// the server side
|
// the server side (the window frame could have
|
||||||
|
// been changed, too)
|
||||||
|
fLink->Read<BRect>(&fFrame);
|
||||||
fLink->Read<float>(&fMinWidth);
|
fLink->Read<float>(&fMinWidth);
|
||||||
fLink->Read<float>(&fMaxWidth);
|
fLink->Read<float>(&fMaxWidth);
|
||||||
fLink->Read<float>(&fMinHeight);
|
fLink->Read<float>(&fMinHeight);
|
||||||
|
@ -1376,7 +1376,6 @@ myRootLayer->Unlock();
|
|||||||
STRACE(("ServerWindow %s: Message AS_WINDOW_RESIZE %.1f, %.1f\n", Title(), xResizeBy, yResizeBy));
|
STRACE(("ServerWindow %s: Message AS_WINDOW_RESIZE %.1f, %.1f\n", Title(), xResizeBy, yResizeBy));
|
||||||
|
|
||||||
fWinBorder->ResizeBy(xResizeBy, yResizeBy);
|
fWinBorder->ResizeBy(xResizeBy, yResizeBy);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AS_WINDOW_MOVE:
|
case AS_WINDOW_MOVE:
|
||||||
@ -1390,7 +1389,6 @@ myRootLayer->Unlock();
|
|||||||
STRACE(("ServerWindow %s: Message AS_WINDOW_MOVE: %.1f, %.1f\n", Title(), xMoveBy, yMoveBy));
|
STRACE(("ServerWindow %s: Message AS_WINDOW_MOVE: %.1f, %.1f\n", Title(), xMoveBy, yMoveBy));
|
||||||
|
|
||||||
fWinBorder->MoveBy(xMoveBy, yMoveBy);
|
fWinBorder->MoveBy(xMoveBy, yMoveBy);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AS_SET_SIZE_LIMITS:
|
case AS_SET_SIZE_LIMITS:
|
||||||
@ -1417,13 +1415,13 @@ myRootLayer->Unlock();
|
|||||||
fWinBorder->GetSizeLimits(&minWidth, &maxWidth, &minHeight, &maxHeight);
|
fWinBorder->GetSizeLimits(&minWidth, &maxWidth, &minHeight, &maxHeight);
|
||||||
|
|
||||||
fLink.StartMessage(SERVER_TRUE);
|
fLink.StartMessage(SERVER_TRUE);
|
||||||
|
fLink.Attach<BRect>(fWinBorder->Frame());
|
||||||
fLink.Attach<float>(minWidth);
|
fLink.Attach<float>(minWidth);
|
||||||
fLink.Attach<float>(maxWidth);
|
fLink.Attach<float>(maxWidth);
|
||||||
fLink.Attach<float>(minHeight);
|
fLink.Attach<float>(minHeight);
|
||||||
fLink.Attach<float>(maxHeight);
|
fLink.Attach<float>(maxHeight);
|
||||||
|
|
||||||
fLink.Flush();
|
fLink.Flush();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case B_MINIMIZE:
|
case B_MINIMIZE:
|
||||||
|
Loading…
Reference in New Issue
Block a user