by default, set expanded popupapplets to accept input, this covers most of the "panel must have focus" needs

BUG:177674

svn path=/trunk/KDE/kdelibs/; revision=1126373
This commit is contained in:
Marco Martin 2010-05-13 21:10:59 +00:00
parent a918cc5af7
commit e1c03d3ef8

View File

@ -276,6 +276,9 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
(f == Plasma::Horizontal && parentSize.height() >= minimum.height())))) {
//kDebug() << "we are expanding the popupapplet";
q->setStatus(Plasma::AcceptingInputStatus);
// we only switch to expanded if we aren't horiz/vert constrained and
// this applet has an icon.
// otherwise, we leave it up to the applet itself to figure it out
@ -361,6 +364,8 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
delete proxy.data();
}
q->setStatus(Plasma::UnknownStatus);
if (!dialogPtr) {
//save the aspect ratio mode in case we drag'n drop in the Desktop later
savedAspectRatio = q->aspectRatioMode();