bypass timer for zero delay focus requests

This commit is contained in:
Thomas Lübking 2011-12-05 18:13:55 +01:00
parent 4040b1ae2f
commit 8b77a204ea

View file

@ -1831,6 +1831,10 @@ void Workspace::delayFocus()
void Workspace::requestDelayFocus(Client* c)
{
if (!options->delayFocusInterval) {
QMetaObject::invokeMethod(this, "delayFocus", Qt::QueuedConnection);
return;
}
delayfocus_client = c;
delete delayFocusTimer;
delayFocusTimer = new QTimer(this);