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:
@@ -725,8 +725,8 @@ WindowLayer::MouseDown(BMessage* message, BPoint where, int32* _viewToken)
|
|||||||
action = _ActionFor(message);
|
action = _ActionFor(message);
|
||||||
|
|
||||||
// ignore clicks on decorator buttons if the
|
// ignore clicks on decorator buttons if the
|
||||||
// window doesn't have focus
|
// non-floating window doesn't have focus
|
||||||
if (!IsFocus() && action != DEC_MOVETOBACK
|
if (!IsFocus() && !IsFloating() && action != DEC_MOVETOBACK
|
||||||
&& action != DEC_RESIZE && action != DEC_SLIDETAB)
|
&& action != DEC_RESIZE && action != DEC_SLIDETAB)
|
||||||
action = DEC_DRAG;
|
action = DEC_DRAG;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user