This fixes that a window appears to lose focus when switching from borderless

to bordered window (ie. VLC when switching back from full screen mode).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17503 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-05-19 08:40:07 +00:00
parent f711110191
commit cdd7c1fb44

View File

@ -1206,6 +1206,8 @@ WindowLayer::SetLook(window_look look, BRegion* updateRegion)
// we need a new decorator
fDecorator = gDecorManager.AllocateDecorator(fDesktop, Frame(),
Title(), fLook, fFlags);
if (IsFocus())
fDecorator->SetFocus(true);
}
fLook = look;