Skip to content
  • Martin Flöser's avatar
    [client] Ensure PlasmaWindowModel removes deleted windows · 3fda8376
    Martin Flöser authored
    Summary:
    There is a possibility that a PlasmaWindow is unmapped when the
    PlasmaWindowModel gets created. In this situation the unmapped
    PlasmaWindow will be deleted in the next event cycle. So far
    PlasmaWindowModel didn't handle this situation and the model might
    hold deleted objects due to this.
    
    This change addresses this potential problem and ensures the model
    gets updated when a PlasmaWindow is deleted.
    
    Test Plan: Test case which exposes the problem is added
    
    Reviewers: #plasma, hein
    
    Subscribers: plasma-devel
    
    Tags: #plasma
    
    Differential Revision: https://phabricator.kde.org/D1622
    3fda8376