Added cases for Minimize buttons in decorators

Buttons on up-to-date decorators now work properly


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7957 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2004-06-14 20:32:21 +00:00
parent 0468f4215d
commit a3031ab19b
2 changed files with 28 additions and 4 deletions
+11
View File
@@ -222,6 +222,14 @@ void WinBorder::MouseDown(PortMessage *msg)
STRACE_CLICK(("===> DEC_ZOOM\n"));
break;
}
case DEC_MINIMIZE:
{
fIsMinimizing = true;
fDecorator->SetMinimize(true);
fDecorator->DrawMinimize();
STRACE_CLICK(("===> DEC_MINIMIZE\n"));
break;
}
case DEC_RESIZE:
{
fIsResizing = true;
@@ -342,6 +350,7 @@ void WinBorder::MouseUp(PortMessage *msg)
fIsZooming = false;
fDecorator->SetZoom(false);
fDecorator->DrawZoom();
Window()->Zoom();
return;
}
if (fIsClosing)
@@ -349,6 +358,7 @@ void WinBorder::MouseUp(PortMessage *msg)
fIsClosing = false;
fDecorator->SetClose(false);
fDecorator->DrawClose();
Window()->Quit();
return;
}
if(fIsMinimizing)
@@ -356,6 +366,7 @@ void WinBorder::MouseUp(PortMessage *msg)
fIsMinimizing = false;
fDecorator->SetMinimize(false);
fDecorator->DrawMinimize();
Window()->Minimize(true);
return;
}
}