Skip to content
  • David Edmundson's avatar
    Don't crash if a client (legally) uses deleted global contrast manager · 01cace30
    David Edmundson authored
    Summary:
    There is a race condition in the following situation:
    
        - Server creates a global
        - Client binds to that global (making a new resource for that
    global)
        Simultaneously:
        - The client uses this resource
        - The server deletes the global
    
    This was fixed for Blur, but as mention in that commit can also happen here.
    Code is effectively a copy and paste from e8850b01
    
    Test Plan: Unit test. Booted normal session
    
    Reviewers: #plasma
    
    Subscribers: plasma-devel, #frameworks
    
    Tags: #plasma_on_wayland, #frameworks
    
    Differential Revision: https://phabricator.kde.org/D7885
    01cace30