From db40254ac820a3b149f75f6c0949c9d069f0b57c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 5 May 2006 17:04:16 +0000 Subject: [PATCH] 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 --- src/servers/app/WindowLayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/app/WindowLayer.cpp b/src/servers/app/WindowLayer.cpp index acf4ce1186..a828387fff 100644 --- a/src/servers/app/WindowLayer.cpp +++ b/src/servers/app/WindowLayer.cpp @@ -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;