From f7d1c1d14c404aa38494ea861e518266fb8a28bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 26 Aug 2012 23:18:33 +0200 Subject: [PATCH] do not show clientmenu if button is down for 2nd click if one clicks very fast, the timeout will coincident with the second downtime (between press and release) what was used to be interpreted as "still down" BUG: 305738 REVIEW: 106227 FIXED-IN: 4.9.1 --- libkdecorations/kcommondecoration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }