From 5cd8761ab276ed818912f409e0075f57a5b61204 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 1 Jun 2007 22:59:58 +0000 Subject: [PATCH] form factor changing svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=670545 --- corona.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/corona.cpp b/corona.cpp index 7e71e95d5..c6d7ace71 100644 --- a/corona.cpp +++ b/corona.cpp @@ -118,7 +118,15 @@ Location Corona::location() const void Corona::setLocation(Location location) { + if (d->location == location) { + return; + } + d->location = location; + + foreach (Applet* applet, d->applets) { + applet->constraintsUpdated(); + } } FormFactor Corona::formFactor() const @@ -132,6 +140,7 @@ void Corona::setFormFactor(FormFactor formFactor) return; } + //kDebug() << "switching FF to " << formFactor << endl; d->formFactor = formFactor; delete d->layout; d->layout = 0;