From e80c4b796cf3a2ee7c7689b78d53c22d16c8385c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 31 Dec 2024 00:08:29 +0100 Subject: [PATCH] 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: --- src/core/window.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index 1ca6128f4..5fd970f7d 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -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