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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user