Merge branch 'Plasma/5.2'

This commit is contained in:
Martin Gräßlin 2015-01-27 12:46:18 +01:00
commit 6c53137408
2 changed files with 7 additions and 2 deletions

View file

@ -198,6 +198,8 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
}
const int number_of_screens = xcb_setup_roots_length(xcb_get_setup(c));
xcb_disconnect(c);
c = nullptr;
// multi head
auto isMultiHead = []() -> bool {
@ -212,8 +214,6 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
KWin::Application::setX11ScreenNumber(primaryScreen);
int pos; // Temporarily needed to reconstruct DISPLAY var if multi-head
QByteArray display_name = qgetenv("DISPLAY");
xcb_disconnect(c);
c = nullptr;
if ((pos = display_name.lastIndexOf('.')) != -1)
display_name.remove(pos, 10); // 10 is enough to be sure we removed ".s"

View file

@ -56,6 +56,11 @@ Shadow *Shadow::createShadow(Toplevel *toplevel)
if (toplevel->effectWindow() && toplevel->effectWindow()->sceneWindow()) {
toplevel->effectWindow()->sceneWindow()->updateShadow(shadow);
}
if (shadow->hasDecorationShadow()) {
if (toplevel->effectWindow()) {
toplevel->effectWindow()->buildQuads(true);
}
}
}
return shadow;
}