summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/resize.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-28 13:32:03 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-28 13:32:03 +0000
commit851658b88fb81e6f37249c291a89e0701559d603 (patch)
tree84d19aee82d3938b2afc6d9beec4300188807584 /beryl-plugins/src/resize.c
parentfdcb663059408f68aeeddee864ba2a1e7821ec4f (diff)
downloadmarex-dev-851658b88fb81e6f37249c291a89e0701559d603.tar.gz
marex-dev-851658b88fb81e6f37249c291a89e0701559d603.tar.bz2
resize plugin: fixed outline painting for shaded windows
git-svn-id: file:///beryl/trunk@2115 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/resize.c')
-rw-r--r--beryl-plugins/src/resize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/beryl-plugins/src/resize.c b/beryl-plugins/src/resize.c
index 3de3309..e7f6e23 100644
--- a/beryl-plugins/src/resize.c
+++ b/beryl-plugins/src/resize.c
@@ -1003,7 +1003,8 @@ resizePaintOutline(CompScreen * s, const ScreenPaintAttrib * sa, int output,
x1 = rd->currentX - rd->w->input.left;
x2 = rd->currentX + rd->currentWidth + rd->w->input.right;
y1 = rd->currentY - rd->w->input.top;
- y2 = rd->currentY + rd->currentHeight + rd->w->input.bottom;
+ y2 = rd->currentY + (rd->w->shaded ? rd->w->height : rd->currentHeight) +
+ rd->w->input.bottom;
glPushMatrix();