From 6d83ce30afbcb7f72beb412f1a70ef9d9519ecd4 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 21 Jun 2023 00:53:41 +0200 Subject: [PATCH] wayland: Update window caption suffix on map Window captions have a suffix for disambiguation, based on window captions of other mapped windows. In xdgshell we update this when a caption changes, but this could be before a window is mapped. This can lead to two windows at once having the same suffix, as a suffix could be used but not in the list of searched clients. BUG: 450369 --- src/waylandwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/waylandwindow.cpp b/src/waylandwindow.cpp index 7fdc4e6cce..610e0c7252 100644 --- a/src/waylandwindow.cpp +++ b/src/waylandwindow.cpp @@ -291,6 +291,7 @@ void WaylandWindow::markAsMapped() { if (Q_UNLIKELY(!ready_for_painting)) { setupCompositing(); + updateCaption(); setReadyForPainting(); } }