summaryrefslogtreecommitdiff
diff options
authorEleni Maria Stea <elenimaria.stea@canonical.com>2016-01-26 12:49:07 +0200
committerEleni Maria Stea <elenimaria.stea@canonical.com>2016-01-26 12:49:07 +0200
commitea64cac07525ae8394f6efd1f290a52f7892f615 (patch)
tree09901d293fc05ba7eb4e1e805e7d9672c0152522
parent7c369c0d2cb69a40ffe875c5670d2c76f0243ff1 (diff)
changed window drawing order (shadows should be rendered before the windows)
(bzr r4067.7.2)
-rw-r--r--plugins/unityshell/src/unityshell.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 514eb2c83..8e7809346 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -2987,9 +2987,9 @@ bool UnityWindow::glPaint(const GLWindowPaintAttrib& attrib,
wAttrib.opacity = 0.0;
int old_index = gWindow->glPaintGetCurrentIndex();
gWindow->glPaintSetCurrentIndex(MAXSHORT);
+ deco_win_->Paint(matrix, wAttrib, region, mask);
bool ret = gWindow->glPaint(wAttrib, matrix, region, mask);
gWindow->glPaintSetCurrentIndex(old_index);
- deco_win_->Paint(matrix, wAttrib, region, mask);
return ret;
}
}
@@ -3028,9 +3028,8 @@ bool UnityWindow::glPaint(const GLWindowPaintAttrib& attrib,
wAttrib.brightness *= 0.75f;
}
- bool ret = gWindow->glPaint(wAttrib, matrix, region, mask);
deco_win_->Paint(matrix, wAttrib, region, mask);
- return ret;
+ return gWindow->glPaint(wAttrib, matrix, region, mask);
}
/* handle window painting in an opengl context
@@ -3153,8 +3152,8 @@ bool UnityWindow::glDraw(const GLMatrix& matrix,
if (draw_panel_shadow == DrawPanelShadow::BELOW_WINDOW)
uScreen->paintPanelShadow(region);
- bool ret = gWindow->glDraw(matrix, attrib, region, mask);
deco_win_->Draw(matrix, attrib, region, mask);
+ bool ret = gWindow->glDraw(matrix, attrib, region, mask);
if (draw_panel_shadow == DrawPanelShadow::OVER_WINDOW)
uScreen->paintPanelShadow(region);