Respect B_NOT_MINIMIZABLE in the default decorator. Maybe we should recheck all the flags in the window code though instead of relying fully on the decorator.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27369 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2008-09-08 08:33:49 +00:00
parent 7d2739a00f
commit 57665c6ef2

View File

@ -580,7 +580,7 @@ DefaultDecorator::Clicked(BPoint point, int32 buttons, int32 modifiers)
if (buttons == B_SECONDARY_MOUSE_BUTTON)
return DEC_MOVETOBACK;
if (fWasDoubleClick)
if (fWasDoubleClick && !(fFlags & B_NOT_MINIMIZABLE))
return DEC_MINIMIZE;
return DEC_DRAG;