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
This commit is contained in:
Thomas Lübking 2012-08-26 23:18:33 +02:00
parent f18230fe99
commit f7d1c1d14c

View file

@ -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;
}