• Martin Flöser's avatar
    [effects] Delay creation of EffectFrames in WindowGeometryEffect · f8be3f74
    Martin Flöser authored
    Summary:
    Without Xwayland KWin starts so fast that the creation of the EffectFrame
    triggers a crash in the Wayland integration as the KWin internal
    connection isn't fully setup.
    
    To workaround this crash the creation of the EffectFrame is delayed till
    the first usage. It doesn't make sense to try to fix the actual crash as
    it would require to defer the creation of all Effects.
    
    Test Plan: New test case added which crashes without this fix.
    
    Reviewers: #kwin, #plasma
    
    Subscribers: plasma-devel, kwin
    
    Tags: #kwin
    
    Differential Revision: https://phabricator.kde.org/D8821
    f8be3f74
windowgeometry_test.cpp 3.24 KB