[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/desktop/shell
From: Marco Martin <notmart () gmail ! com>
Date: 2010-07-01 17:31:00
Message-ID: 20100701173100.844F6AC8E2 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1145072 by mart:
connect to repaintNeeded, not themeChanged, so we know the Svg sizes are recalculated already
patch by Manuel Mommertz
M +2 -2 panelview.cpp
--- trunk/KDE/kdebase/workspace/plasma/desktop/shell/panelview.cpp #1145071:1145072
@@ -211,6 +211,7 @@
region.handle(), ShapeSet);
#endif
+ connect(m_shadow, SIGNAL(repaintNeeded()), m_panel, SLOT(checkShadow()));
m_shadow = new Plasma::FrameSvg(this);
}
@@ -365,7 +366,6 @@
this, SLOT(updatePanelGeometry()));
connect(screens, SIGNAL(screenAdded(Kephal::Screen *)),
this, SLOT(updateStruts()));
- connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(checkShadow()));
}
PanelView::~PanelView()
@@ -477,7 +477,7 @@
m_shadowWindow->adjustMargins(geometry());
m_shadowWindow->getContentsMargins(&left, &top, &right, &bottom);
m_shadowWindow->setGeometry(geometry().adjusted(-left, -top, right, bottom));
- if (m_shadowWindow->isValid()) {
+ if (m_shadowWindow->isValid() && isVisible()) {
m_shadowWindow->show();
}
} else {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic