• Martin Flöser's avatar
    [server] Improve the handling when clients disconnect · fd01e59a
    Martin Flöser authored
    So far the server component performed manual cleanup in some cases
    when a client disconnects. But this is not needed: the Wayland library
    calls the static unbind methods which do cleanup. If we cleanup ourselves
    this can result in double deletes in the worst case, so let's only use
    the Wayland functionality.
    * RegionInterface
    * SurfaceInterface
    * ShellSurfaceInterface (doesn't take a parent anymore)
    * DpmsInterface
    * QtSurfaceExtensionInterface
    * KeyboardInterface
    * PointerInterface
    * TouchInterface
    * DataOfferInterface
    * PlasmaShellSurfaceInterface
    For each adjusted case a test case is added to verify that the cleanup
    works. Exceptions are DpmsInterface as the actual Resource is not exposed
    at all in the Server component and DataOfferInterface as that is server
    side created.
    Reviewers: #plasma
    Subscribers: plasma-devel
    Tags: #plasma
    Differential Revision: https://phabricator.kde.org/D1640
keyboard_interface.cpp 5.92 KB