ensure we get mouse focus even if the wallpaper accpets the event

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856795
This commit is contained in:
Aaron J. Seigo 2008-09-03 19:57:53 +00:00
parent 456e81518e
commit e8bbd8c33f

View File

@ -380,7 +380,9 @@ void Containment::mousePressEvent(QGraphicsSceneMouseEvent *event)
} }
} }
if (!event->isAccepted()) { if (event->isAccepted()) {
setFocus(Qt::MouseFocusReason);
} else {
event->accept(); event->accept();
Applet::mousePressEvent(event); Applet::mousePressEvent(event);
} }