D26966: [kstyle] Use guarded pointers to store shadows

2020-01-28 Thread Aleix Pol Gonzalez
apol added a comment. +1 REPOSITORY R31 Breeze REVISION DETAIL https://phabricator.kde.org/D26966 To: zzag, #plasma, broulik Cc: apol, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali

D26966: [kstyle] Use guarded pointers to store shadows

2020-01-28 Thread Vlad Zahorodnii
zzag added inline comments. INLINE COMMENTS > apol wrote in breezeshadowhelper.h:157 > if this is a thing, maybe it would make sense to actually try and remove the > KWindowShadows upon destruction? > Something like `connect(newshadow, &QObject::destroyed, this, [this, widget] > { _shadows.rem

D26966: [kstyle] Use guarded pointers to store shadows

2020-01-28 Thread Vlad Zahorodnii
zzag updated this revision to Diff 74502. zzag added a comment. Connect to QObject::destroyed REPOSITORY R31 Breeze CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D26966?vs=74497&id=74502 BRANCH fix-crash REVISION DETAIL https://phabricator.kde.org/D26966 AFFECTED FILES ks

D26966: [kstyle] Use guarded pointers to store shadows

2020-01-28 Thread Kai Uwe Broulik
broulik added inline comments. INLINE COMMENTS > apol wrote in breezeshadowhelper.h:157 > if this is a thing, maybe it would make sense to actually try and remove the > KWindowShadows upon destruction? > Something like `connect(newshadow, &QObject::destroyed, this, [this, widget] > { _shadows.

D26966: [kstyle] Use guarded pointers to store shadows

2020-01-28 Thread Aleix Pol Gonzalez
apol added inline comments. INLINE COMMENTS > breezeshadowhelper.h:157 > //* managed shadows > -QMap _shadows; > if this is a thing, maybe it would make sense to actually try and remove the KWindowShadows upon destruction? Something like `connect(newshadow, &QObject::destroye

D26966: [kstyle] Use guarded pointers to store shadows

2020-01-28 Thread Vlad Zahorodnii
zzag created this revision. zzag added reviewers: Plasma, broulik. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. zzag requested review of this revision. REVISION SUMMARY Since a KWindowShadow is a child of QWindow, we need to use a guarded pointer to store the shadow