From 6417229f7c612502e1604f2596600c09632e7fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 9 Mar 2006 22:13:00 +0000 Subject: [PATCH] Floating and left titled windows are now always drawn "active" (ie. have a yellow tab that doesn't become gray, even if another window gets focus), adopting the R5 behaviour. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16684 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DefaultDecorator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/servers/app/DefaultDecorator.cpp b/src/servers/app/DefaultDecorator.cpp index acc26dd57f..472faf9c64 100644 --- a/src/servers/app/DefaultDecorator.cpp +++ b/src/servers/app/DefaultDecorator.cpp @@ -878,7 +878,8 @@ DefaultDecorator::_SetFocus() // SetFocus() performs necessary duties for color swapping and // other things when a window is deactivated or activated. - if (IsFocus()) { + if (IsFocus() || ((fLook == B_FLOATING_WINDOW_LOOK || fLook == kLeftTitledWindowLook) + && (fFlags & B_AVOID_FOCUS) != 0)) { fButtonHighColor.SetColor(tint_color(_colors->window_tab,B_LIGHTEN_2_TINT)); fButtonLowColor.SetColor(tint_color(_colors->window_tab,B_DARKEN_1_TINT)); fTextColor = _colors->window_tab_text;