From 1ab4faaf18df75df0dd582fb8114a8b1264fa2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 17 Jan 2024 18:13:22 +0100 Subject: [PATCH] place: Fix centering transients over parent Transient dialogs are meant to be placed centered over their parent. However as we don't use the DIALOG window type on wayland, this currently only works for modal dialogs. To fix this, also apply the policy to NORMAL windows for wayland clients. Part-of: --- src/core/place.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/place.c b/src/core/place.c index 6eae1a9a7..8cb4144ad 100644 --- a/src/core/place.c +++ b/src/core/place.c @@ -837,7 +837,9 @@ meta_window_place (MetaWindow *window, } if (window->type == META_WINDOW_DIALOG || - window->type == META_WINDOW_MODAL_DIALOG) + window->type == META_WINDOW_MODAL_DIALOG || + (window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND && + window->type == META_WINDOW_NORMAL)) { MetaWindow *parent = meta_window_get_transient_for (window);