diff --git a/effects/kscreen/kscreen.cpp b/effects/kscreen/kscreen.cpp index af9a881975..ab13f46514 100644 --- a/effects/kscreen/kscreen.cpp +++ b/effects/kscreen/kscreen.cpp @@ -123,16 +123,8 @@ void KscreenEffect::propertyNotify(EffectWindow *window, long int atom) } QByteArray byteData = effects->readRootProperty(m_atom, XCB_ATOM_CARDINAL, 32); auto *data = reinterpret_cast(byteData.data()); - if (!data[0]) { - // Property was deleted - if (m_state != StateNormal) { - m_state = StateNormal; - effects->addRepaintFull(); - } - return; - } - if (data[0] == 0) { - // normal state - KWin should have switched to it + if (!data // Property was deleted + || data[0] == 0) { // normal state - KWin should have switched to it if (m_state != StateNormal) { m_state = StateNormal; effects->addRepaintFull();