From dfa4623a680edcb98c17bb4b5d3c5657bef72e34 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 28 Apr 2008 14:18:19 +0000 Subject: [PATCH] don't try to set StandardBackground if FormFactor is Horizontal or Vertical this fixes the panel layout on the first load when there is no plasma-appletsrc svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802089 --- applet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applet.cpp b/applet.cpp index 6c6abd510..6526db768 100644 --- a/applet.cpp +++ b/applet.cpp @@ -931,13 +931,13 @@ void Applet::flushPendingConstraintsEvents() // normally doesn't request a background would then get one! if (f == Planar) { setBackgroundHints(d->backgroundHints|ShadowedBackground); - } else { + } else if (d->backgroundHints&ShadowedBackground) { setBackgroundHints(d->backgroundHints^ShadowedBackground); } if (!isContainment() && f != Vertical && f != Horizontal) { setBackgroundHints(d->backgroundHints|StandardBackground); - } else { + } else if(d->backgroundHints&StandardBackground) { setBackgroundHints(d->backgroundHints^StandardBackground); } }