summaryrefslogtreecommitdiff
path: root/kde
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-05-29 13:50:47 +0200
committerDennis kasprzyk <onestone@opencompositing.org>2008-05-29 13:57:16 +0200
commite1a0b9f6dabce5f37a3c20b090b1bae4d980f478 (patch)
tree3b12b5ad77e4f1827e5a41dda62c65d1a08a0f55 /kde
parentcdd241241478ddf8ef0d18f2e962c4d77311a62c (diff)
downloadzcomp-e1a0b9f6dabce5f37a3c20b090b1bae4d980f478.tar.gz
zcomp-e1a0b9f6dabce5f37a3c20b090b1bae4d980f478.tar.bz2
Applied libdecoration changes to kde3 window decorator.
Diffstat (limited to 'kde')
-rw-r--r--kde/window-decorator/window.cpp80
1 files changed, 44 insertions, 36 deletions
diff --git a/kde/window-decorator/window.cpp b/kde/window-decorator/window.cpp
index c10ff16..55580e6 100644
--- a/kde/window-decorator/window.cpp
+++ b/kde/window-decorator/window.cpp
@@ -1911,15 +1911,17 @@ KWD::Window::processDamage (void)
{
r2.translate (-xOff, -yOff);
- decor_blend_top_border_picture (qt_xdisplay (),
- &mContext,
- mPicture,
- xOff, xOff,
- mTexturePicture,
- &mLayout,
- r2.handle (),
- (unsigned short) (alpha * 0xffff),
- shade_alpha);
+ decor_blend_border_picture (qt_xdisplay (),
+ &mContext,
+ mPicture,
+ xOff, xOff,
+ mTexturePicture,
+ &mLayout,
+ BORDER_TOP,
+ r2.handle (),
+ (unsigned short) (alpha * 0xffff),
+ shade_alpha,
+ TRUE);
}
xOff = 0;
@@ -1932,15 +1934,17 @@ KWD::Window::processDamage (void)
{
r2.translate (-xOff, -yOff);
- decor_blend_bottom_border_picture (qt_xdisplay (),
- &mContext,
- mPicture,
- xOff, yOff,
- mTexturePicture,
- &mLayout,
- r2.handle (),
- (unsigned short) (alpha * 0xffff),
- shade_alpha);
+ decor_blend_border_picture (qt_xdisplay (),
+ &mContext,
+ mPicture,
+ xOff, yOff,
+ mTexturePicture,
+ &mLayout,
+ BORDER_BOTTOM,
+ r2.handle (),
+ (unsigned short) (alpha * 0xffff),
+ shade_alpha,
+ TRUE);
}
xOff = 0;
@@ -1953,15 +1957,17 @@ KWD::Window::processDamage (void)
{
r2.translate (-xOff, -yOff);
- decor_blend_left_border_picture (qt_xdisplay (),
- &mContext,
- mPicture,
- xOff, yOff,
- mTexturePicture,
- &mLayout,
- r2.handle (),
- (unsigned short) (alpha * 0xffff),
- shade_alpha);
+ decor_blend_border_picture (qt_xdisplay (),
+ &mContext,
+ mPicture,
+ xOff, yOff,
+ mTexturePicture,
+ &mLayout,
+ BORDER_LEFT,
+ r2.handle (),
+ (unsigned short) (alpha * 0xffff),
+ shade_alpha,
+ TRUE);
}
xOff = mContext.extents.left + mGeometry.width ();
@@ -1974,15 +1980,17 @@ KWD::Window::processDamage (void)
{
r2.translate (-xOff, -yOff);
- decor_blend_right_border_picture (qt_xdisplay (),
- &mContext,
- mPicture,
- xOff, yOff,
- mTexturePicture,
- &mLayout,
- r2.handle (),
- (unsigned short) (alpha * 0xffff),
- shade_alpha);
+ decor_blend_border_picture (qt_xdisplay (),
+ &mContext,
+ mPicture,
+ xOff, yOff,
+ mTexturePicture,
+ &mLayout,
+ BORDER_RIGHT,
+ r2.handle (),
+ (unsigned short) (alpha * 0xffff),
+ shade_alpha,
+ TRUE);
}
mDamage = QRegion ();