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:
parent
456e81518e
commit
e8bbd8c33f
@ -380,7 +380,9 @@ void Containment::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
if (!event->isAccepted()) {
|
||||
if (event->isAccepted()) {
|
||||
setFocus(Qt::MouseFocusReason);
|
||||
} else {
|
||||
event->accept();
|
||||
Applet::mousePressEvent(event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user