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:
@@ -357,12 +357,15 @@ StackAndTile::_ActivateWindow(SATWindow* satWindow)
|
|||||||
if (!desktop)
|
if (!desktop)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
desktop->ActivateWindow(satWindow->GetWindow());
|
||||||
|
|
||||||
for (int i = 0; i < group->CountItems(); i++) {
|
for (int i = 0; i < group->CountItems(); i++) {
|
||||||
SATWindow* listWindow = group->WindowAt(i);
|
SATWindow* listWindow = group->WindowAt(i);
|
||||||
if (listWindow != satWindow)
|
if (listWindow == satWindow)
|
||||||
desktop->ActivateWindow(listWindow->GetWindow());
|
continue;
|
||||||
|
desktop->SendWindowBehind(listWindow->GetWindow(),
|
||||||
|
satWindow->GetWindow());
|
||||||
}
|
}
|
||||||
desktop->ActivateWindow(satWindow->GetWindow());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user