Floating windows are always closable, no matter if they have focus or not.

This fixes bug #558; Cortex floating windows have the B_AVOID_FOCUS flag set.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17341 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-05-05 17:04:16 +00:00
parent 95dfa2f806
commit db40254ac8
+2 -2
View File
@@ -725,8 +725,8 @@ WindowLayer::MouseDown(BMessage* message, BPoint where, int32* _viewToken)
action = _ActionFor(message);
// ignore clicks on decorator buttons if the
// window doesn't have focus
if (!IsFocus() && action != DEC_MOVETOBACK
// non-floating window doesn't have focus
if (!IsFocus() && !IsFloating() && action != DEC_MOVETOBACK
&& action != DEC_RESIZE && action != DEC_SLIDETAB)
action = DEC_DRAG;