window: Remove condition checking for different stacks

Different stacks hasn't been a thing since support for multiple screens
was removed, so the condition no longer has any use.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4005>
This commit is contained in:
Jonas Ådahl 2024-12-31 00:08:29 +01:00 committed by Marge Bot
parent dea81517a3
commit e80c4b796c

View File

@ -5151,21 +5151,7 @@ meta_window_raise (MetaWindow *window)
* constraints in stack.c then magically take care of raising all
* the child windows appropriately.
*/
if (window->display->stack == ancestor->display->stack)
{
meta_stack_raise (window->display->stack, ancestor);
}
else
{
meta_warning (
"Either stacks aren't per screen or some window has a weird "
"transient_for hint; window->display->stack != "
"ancestor->screen->stack. window = %s, ancestor = %s.",
window->desc, ancestor->desc);
/* We could raise the window here, but don't want to do that twice and
* so we let the case below handle that.
*/
}
meta_stack_raise (window->display->stack, ancestor);
/* Okay, so stacking constraints misses one case: If a window has
* two children and we want to raise one of those children, then