From 982a2e3a37f4e8674fab94362f6223f2d5bc4afd Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 16 May 2024 11:31:06 +0300 Subject: [PATCH] wayland: Lower severity of a log message about unknown uuid The communication between the compositor and plasmashell is asynchronous. It's possible that plasma can call get_window_by_uuid before it is notified that the window has been closed. There's no any way around with the current design of the protocol. So printing a warning message is unjustified. This fixes kwin's logs being full of "could not find window" warning messages. --- src/wayland/plasmawindowmanagement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/plasmawindowmanagement.cpp b/src/wayland/plasmawindowmanagement.cpp index ece82e8dd5..5943238b75 100644 --- a/src/wayland/plasmawindowmanagement.cpp +++ b/src/wayland/plasmawindowmanagement.cpp @@ -245,7 +245,7 @@ void PlasmaWindowManagementInterfacePrivate::org_kde_plasma_window_management_ge return window->d->uuid == internal_window_uuid; }); if (it == windows.constEnd()) { - qCWarning(KWIN_CORE) << "Could not find window with uuid" << internal_window_uuid; + qCDebug(KWIN_CORE) << "Could not find window with uuid" << internal_window_uuid; // create a temp window just for the resource, bind then immediately delete it, sending an unmap event PlasmaWindowInterface window(q, q); auto windowResource = window.d->add(resource->client(), id, resource->version());