diff --git a/libkdecorations/kcommondecoration.cpp b/libkdecorations/kcommondecoration.cpp index 13a4c491d3..e3e884b56f 100644 --- a/libkdecorations/kcommondecoration.cpp +++ b/libkdecorations/kcommondecoration.cpp @@ -737,10 +737,10 @@ void KCommonDecoration::timerEvent(QTimerEvent *event) { if (timer && event->timerId() == timer->timerId()) { timer->stop(); - closing = false; - if (!m_button[MenuButton]->isDown()) { + if (closing || !m_button[MenuButton]->isDown()) { return; } + closing = false; doShowWindowMenu(); return; }