When activating one window in a group send all other windows behind this window and not activate them. This fix flickering of stacked windows.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38474 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-08-31 02:07:15 +00:00
parent d4272f888e
commit fef53dfffd

View File

@ -357,12 +357,15 @@ StackAndTile::_ActivateWindow(SATWindow* satWindow)
if (!desktop)
return;
desktop->ActivateWindow(satWindow->GetWindow());
for (int i = 0; i < group->CountItems(); i++) {
SATWindow* listWindow = group->WindowAt(i);
if (listWindow != satWindow)
desktop->ActivateWindow(listWindow->GetWindow());
if (listWindow == satWindow)
continue;
desktop->SendWindowBehind(listWindow->GetWindow(),
satWindow->GetWindow());
}
desktop->ActivateWindow(satWindow->GetWindow());
}