Revert "fix focus delay optimization"

It's more a timing than an event quqe thing?!
This reverts commit c039abe4eadafb16c6556ff07ea091f606b234fb.
This commit is contained in:
Thomas Lübking 2011-12-06 14:22:21 +01:00
parent e1a63303b6
commit a683eeba11

View file

@ -1831,13 +1831,12 @@ void Workspace::delayFocus()
void Workspace::requestDelayFocus(Client* c)
{
delayfocus_client = c;
delete delayFocusTimer;
if (!options->delayFocusInterval) {
delayFocusTimer = 0;
QMetaObject::invokeMethod(this, "delayFocus", Qt::QueuedConnection);
return;
}
delayfocus_client = c;
delete delayFocusTimer;
delayFocusTimer = new QTimer(this);
connect(delayFocusTimer, SIGNAL(timeout()), this, SLOT(delayFocus()));
delayFocusTimer->setSingleShot(true);