* 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
+6 -4
View File
@@ -889,16 +889,18 @@ ServerWindow::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
STRACE(("ServerWindow %s: Message AS_WINDOW_RESIZE %.1f, %.1f\n",
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
// pragmatically set window bounds
fLink.StartMessage(B_BUSY);
} else {
// fLink.StartMessage(B_BUSY);
// } else {
//fDesktop->UnlockSingleWindow();
fDesktop->ResizeWindowBy(fWindow, xResizeBy, yResizeBy);
//fDesktop->LockSingleWindow();
fLink.StartMessage(B_OK);
}
// }
fLink.Flush();
break;
}