plugins/screentransform: Don't preemptively cancel screen animation

If two output configurations are applied consecutively, the screen
rotation animation may be cancelled too early.
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago committed by David Edmundson
parent bd5c566399
commit 1f5fb58d23
  1. 4
      src/plugins/screentransform/screentransform.cpp

@ -73,10 +73,6 @@ void ScreenTransformEffect::addScreen(Output *screen)
connect(screen, &Output::aboutToChange, this, [this, screen](OutputChangeSet *changeSet) {
const OutputTransform transform = changeSet->transform.value_or(screen->transform());
if (screen->transform() == transform) {
if (auto it = m_states.find(screen); it != m_states.end()) {
effects->makeOpenGLContextCurrent();
m_states.erase(it);
}
return;
}

Loading…
Cancel
Save