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.
This commit is contained in:
Vlad Zahorodnii 2024-05-16 11:31:06 +03:00
parent 711c5bb43f
commit 982a2e3a37

View file

@ -245,7 +245,7 @@ void PlasmaWindowManagementInterfacePrivate::org_kde_plasma_window_management_ge
return window->d->uuid == internal_window_uuid; return window->d->uuid == internal_window_uuid;
}); });
if (it == windows.constEnd()) { 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 // create a temp window just for the resource, bind then immediately delete it, sending an unmap event
PlasmaWindowInterface window(q, q); PlasmaWindowInterface window(q, q);
auto windowResource = window.d->add(resource->client(), id, resource->version()); auto windowResource = window.d->add(resource->client(), id, resource->version());