From 7ad3838c5e81264de63fd8beee2c3dadd6a6749a Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 8 Aug 2011 14:42:38 +0200 Subject: [PATCH] allow popups to be freely resized when they aren't the applet --- popupapplet.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index c1ed41fdb..d6e3106f3 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -372,7 +372,9 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) dialog->d->appletPtr = q; 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 //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::setState(dialog->winId(), NET::SkipTaskbar | NET::SkipPager); - dialog->setAspectRatioMode(savedAspectRatio); + if (icon) { + dialog->setAspectRatioMode(savedAspectRatio); + } if (q->location() != Floating) { dialog->animatedShow(locationToDirection(q->location()));