allow popups to be freely resized when they aren't the applet
This commit is contained in:
parent
f0d247f9c6
commit
858abd8243
@ -372,7 +372,9 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
|||||||
dialog->d->appletPtr = q;
|
dialog->d->appletPtr = q;
|
||||||
dialogPtr = dialog;
|
dialogPtr = dialog;
|
||||||
|
|
||||||
dialog->setAspectRatioMode(savedAspectRatio);
|
if (icon) {
|
||||||
|
dialog->setAspectRatioMode(savedAspectRatio);
|
||||||
|
}
|
||||||
|
|
||||||
//no longer use Qt::Popup since that seems to cause a lot of problem when you drag
|
//no longer use Qt::Popup since that seems to cause a lot of problem when you drag
|
||||||
//stuff out of your Dialog (extenders). Monitor WindowDeactivate events so we can
|
//stuff out of your Dialog (extenders). Monitor WindowDeactivate events so we can
|
||||||
@ -736,7 +738,9 @@ void PopupAppletPrivate::internalTogglePopup()
|
|||||||
KWindowSystem::setOnAllDesktops(dialog->winId(), true);
|
KWindowSystem::setOnAllDesktops(dialog->winId(), true);
|
||||||
KWindowSystem::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
|
KWindowSystem::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
|
||||||
|
|
||||||
dialog->setAspectRatioMode(savedAspectRatio);
|
if (icon) {
|
||||||
|
dialog->setAspectRatioMode(savedAspectRatio);
|
||||||
|
}
|
||||||
|
|
||||||
if (q->location() != Floating) {
|
if (q->location() != Floating) {
|
||||||
dialog->animatedShow(locationToDirection(q->location()));
|
dialog->animatedShow(locationToDirection(q->location()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user