improved focus follows mouse support with Alt-Tab
svn path=/trunk/kdebase/kwin/; revision=55750
This commit is contained in:
parent
e4ba98a3b8
commit
4bec1c366d
1 changed files with 22 additions and 16 deletions
38
tabbox.cpp
38
tabbox.cpp
|
@ -273,27 +273,33 @@ void TabBox::paintContents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void TabBox::hide()
|
||||||
TabBox::hide()
|
|
||||||
{
|
{
|
||||||
delayedShowTimer.stop();
|
delayedShowTimer.stop();
|
||||||
QWidget::hide();
|
QWidget::hide();
|
||||||
|
QApplication::syncX();
|
||||||
|
XEvent otherEvent;
|
||||||
|
while (XCheckTypedEvent (qt_xdisplay(), EnterNotify, &otherEvent ) )
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
TabBox::delayedShow()
|
/*!
|
||||||
|
Rikkus: please document! (Matthias)
|
||||||
|
*/
|
||||||
|
void TabBox::delayedShow()
|
||||||
{
|
{
|
||||||
KConfig * c(KGlobal::config());
|
KConfig * c(KGlobal::config());
|
||||||
c->setGroup("TabBox");
|
c->setGroup("TabBox");
|
||||||
bool delay = c->readNumEntry("ShowDelay", false);
|
bool delay = c->readNumEntry("ShowDelay", false);
|
||||||
|
|
||||||
|
if (!delay) {
|
||||||
|
show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!delay) {
|
int delayTime = c->readNumEntry("DelayTime", 400);
|
||||||
show();
|
delayedShowTimer.start(delayTime, true);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
int delayTime = c->readNumEntry("DelayTime", 400);
|
|
||||||
delayedShowTimer.start(delayTime, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "tabbox.moc"
|
#include "tabbox.moc"
|
||||||
|
|
Loading…
Reference in a new issue