Skip to content
  • David Edmundson's avatar
    Avoid deleting ourselves midway through updateShadow · 576c6671
    David Edmundson authored
    Summary:
    If updating a shadow means that there should be no shadow, shadow ends
    up deleting itself midway through the method.
    
    It's cleaner and safer to leave that to the caller.
    
    This new change matches the existing documentation for
    Shadow::updateShadow which states
    
    > In case the Property has been withdrawn the method returns @c false.
    > In that case the owner should delete the Shadow.
    
    Test Plan:
    Created an ASAN of kwin
    Relevant testMaximised no longer fails
    
    Reviewers: #kwin, zzag
    
    Reviewed By: #kwin, zzag
    
    Subscribers: kwin
    
    Tags: #kwin
    
    Differential Revision: https://phabricator.kde.org/D17380
    576c6671