graesslin created this revision. graesslin added a reviewer: Plasma. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY The protocol is extended by a dedicated destructor request. When a PlasmaWindow is umapped we no longer destroy the resource directly, but only send the unmap. The client is then supposed to clean up (which it already did in that case) and will invoke the destructor. The PlasmaWindowInterface object will be automatically deleted after the unmap once all resources bound for it are destroyed. The tests are extended by two new test cases which triggered protocol errors on the client side prior to this change. REPOSITORY rKWAYLAND KWayland BRANCH improved-resource-cleanup-plasma-window REVISION DETAIL https://phabricator.kde.org/D1594 AFFECTED FILES autotests/client/test_wayland_windowmanagement.cpp src/client/protocols/plasma-window-management.xml src/client/registry.cpp src/server/plasmawindowmanagement_interface.cpp src/server/plasmawindowmanagement_interface.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, Plasma Cc: plasma-devel, sebas
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel