wayland: Don't call updateDecoration() for popups

After lowering the message severity for the KWIN_CORE logging category,
it has been found that the Workspace calls the updateDecoration() method
for every mapped popup surface.

Since the XdgPopupClient doesn't implement that method, a warning message
is printed every time a popup is mapped.

Given that XdgToplevelClient updates the decoration when needed, we can
remove the call to the updateDecoration() method.
This commit is contained in:
Vlad Zahorodnii 2021-01-25 16:19:07 +02:00
parent 33cf87f0ab
commit 5eaf46c248

View file

@ -712,7 +712,6 @@ void Workspace::removeDeleted(Deleted* c)
void Workspace::addShellClient(AbstractClient *client)
{
setupClientConnections(client);
client->updateDecoration(false);
updateClientLayer(client);
if (client->isPlaceable()) {