* comment the code that prevents programmatically resize events during

a user resize, this makes ArtPAint's tool pallete window resize properly

  Thanks Stephan for explaining me two time what to look for  :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27384 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich 2008-09-08 20:23:00 +00:00
parent 6ee56a00e5
commit 2982ae5d1a

View File

@ -889,16 +889,18 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
STRACE(("ServerWindow %s: Message AS_WINDOW_RESIZE %.1f, %.1f\n", STRACE(("ServerWindow %s: Message AS_WINDOW_RESIZE %.1f, %.1f\n",
Title(), xResizeBy, yResizeBy)); Title(), xResizeBy, yResizeBy));
if (fWindow->IsResizing()) { // comment this code for the time being, as some apps rely
// on the programmatically resize behavior during user resize
// if (fWindow->IsResizing()) {
// While the user resizes the window, we ignore // While the user resizes the window, we ignore
// pragmatically set window bounds // pragmatically set window bounds
fLink.StartMessage(B_BUSY); // fLink.StartMessage(B_BUSY);
} else { // } else {
//fDesktop->UnlockSingleWindow(); //fDesktop->UnlockSingleWindow();
fDesktop->ResizeWindowBy(fWindow, xResizeBy, yResizeBy); fDesktop->ResizeWindowBy(fWindow, xResizeBy, yResizeBy);
//fDesktop->LockSingleWindow(); //fDesktop->LockSingleWindow();
fLink.StartMessage(B_OK); fLink.StartMessage(B_OK);
} // }
fLink.Flush(); fLink.Flush();
break; break;
} }
@ -2198,13 +2200,13 @@ ServerWindow::_DispatchViewDrawingMessage(int32 code, BPrivate::LinkReceiver &li
{ {
DTRACE(("ServerWindow %s: Message AS_STROKE/FILL_TRIANGLE\n", Title())); DTRACE(("ServerWindow %s: Message AS_STROKE/FILL_TRIANGLE\n", Title()));
BPoint pts[3]; BPoint pts[3];
BRect rect; BRect rect;
for (int32 i = 0; i < 3; i++) { for (int32 i = 0; i < 3; i++) {
link.Read<BPoint>(&(pts[i])); link.Read<BPoint>(&(pts[i]));
fCurrentView->ConvertToScreenForDrawing(&pts[i]); fCurrentView->ConvertToScreenForDrawing(&pts[i]);
} }
link.Read<BRect>(&rect); link.Read<BRect>(&rect);