summaryrefslogtreecommitdiff
path: root/plugins/unityshell/src
diff options
Diffstat (limited to 'plugins/unityshell/src')
-rw-r--r--plugins/unityshell/src/unityshell.cpp19
-rw-r--r--plugins/unityshell/src/unityshell.h8
2 files changed, 12 insertions, 15 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index bfe31470d..7c23f00c3 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -3672,10 +3672,10 @@ UnityWindow::RenderText(WindowCairoContext *context,
}
void
-UnityWindow::DrawWindowTitle(const GLWindowPaintAttrib& attrib,
- const GLMatrix& transform,
- unsigned int mask,
- float x, float y, float x2, float y2)
+UnityWindow::DrawWindowDecoration(const GLWindowPaintAttrib& attrib,
+ const GLMatrix& transform,
+ unsigned int mask,
+ float x, float y, float x2, float y2)
{
const float width = x2 - x;
@@ -3794,15 +3794,12 @@ UnityWindow::scalePaintDecoration(const GLWindowPaintAttrib& attrib,
const float iconX = x + CLOSE_ICON_SPACE;
const float iconY = y + ((SCALE_WINDOW_TITLE_SIZE - CLOSE_ICON_SIZE) / 2.0);
- maxHeight = maxWidth = 0;
-
- DrawWindowTitle(sAttrib,
- transform,
- mask,
- x, y,
- x + width, y + SCALE_WINDOW_TITLE_SIZE);
+ DrawWindowDecoration(sAttrib, transform, mask,
+ x, y,
+ x + width, y + SCALE_WINDOW_TITLE_SIZE);
mask |= PAINT_WINDOW_BLEND_MASK;
+ maxHeight = maxWidth = 0;
foreach(GLTexture *icon, close_icon_)
{
DrawTexture(icon, sAttrib, transform, mask,
diff --git a/plugins/unityshell/src/unityshell.h b/plugins/unityshell/src/unityshell.h
index 59b5546d6..2caf745dd 100644
--- a/plugins/unityshell/src/unityshell.h
+++ b/plugins/unityshell/src/unityshell.h
@@ -467,10 +467,10 @@ private:
compiz::WindowInputRemoverLock::Ptr GetInputRemover ();
- void DrawWindowTitle(const GLWindowPaintAttrib& attrib,
- const GLMatrix& transform,
- unsigned int mask,
- float x, float y, float x2, float y2);
+ void DrawWindowDecoration(const GLWindowPaintAttrib& attrib,
+ const GLMatrix& transform,
+ unsigned int mask,
+ float x, float y, float x2, float y2);
void DrawTexture(GLTexture *icon,
const GLWindowPaintAttrib& attrib,
const GLMatrix& transform,