Revert "fix focus delay optimization"
It's more a timing than an event quqe thing?! This reverts commit c039abe4eadafb16c6556ff07ea091f606b234fb.
This commit is contained in:
parent
e1a63303b6
commit
a683eeba11
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue