improved focus follows mouse support with Alt-Tab

svn path=/trunk/kdebase/kwin/; revision=55750
icc-effect-5.14.5
Matthias Ettrich 2000-07-08 11:57:38 +00:00
parent e4ba98a3b8
commit 4bec1c366d
1 changed files with 22 additions and 16 deletions

View File

@ -273,27 +273,33 @@ void TabBox::paintContents()
}
}
void
TabBox::hide()
void TabBox::hide()
{
delayedShowTimer.stop();
QWidget::hide();
delayedShowTimer.stop();
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());
c->setGroup("TabBox");
bool delay = c->readNumEntry("ShowDelay", false);
KConfig * c(KGlobal::config());
c->setGroup("TabBox");
bool delay = c->readNumEntry("ShowDelay", false);
if (!delay) {
show();
return;
}
if (!delay) {
show();
return;
}
int delayTime = c->readNumEntry("DelayTime", 400);
delayedShowTimer.start(delayTime, true);
int delayTime = c->readNumEntry("DelayTime", 400);
delayedShowTimer.start(delayTime, true);
}
#include "tabbox.moc"