Commit f0cce272 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

effects/slidingpopups: Reload slide data after restarting compositing

Otherwise some plasma popups may stop sliding after restarting
compositing.

CCBUG: 443711


(cherry picked from commit eb62728f)
parent 0a01c2d6
......@@ -53,6 +53,11 @@ SlidingPopupsEffect::SlidingPopupsEffect()
this, &SlidingPopupsEffect::stopAnimations);
reconfigure(ReconfigureAll);
const EffectWindowList windows = effects->stackingOrder();
for (EffectWindow *window : windows) {
setupSlideData(window);
}
}
SlidingPopupsEffect::~SlidingPopupsEffect()
......@@ -184,7 +189,7 @@ void SlidingPopupsEffect::postPaintWindow(EffectWindow *w)
effects->postPaintWindow(w);
}
void SlidingPopupsEffect::slotWindowAdded(EffectWindow *w)
void SlidingPopupsEffect::setupSlideData(EffectWindow *w)
{
//X11
if (m_atom != XCB_ATOM_NONE) {
......@@ -203,7 +208,11 @@ void SlidingPopupsEffect::slotWindowAdded(EffectWindow *w)
internal->installEventFilter(this);
setupInternalWindowSlide(w);
}
}
void SlidingPopupsEffect::slotWindowAdded(EffectWindow *w)
{
setupSlideData(w);
slideIn(w);
}
......
......@@ -60,6 +60,7 @@ private Q_SLOTS:
private:
void setupAnimData(EffectWindow *w);
void setupInternalWindowSlide(EffectWindow *w);
void setupSlideData(EffectWindow *w);
KWaylandServer::ScopedGlobalPointer<KWaylandServer::SlideManagerInterface> m_slideManager;
long m_atom;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment