summaryrefslogtreecommitdiff
path: root/kde/window-decorator-kde4
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-05-29 13:51:10 +0200
committerDennis kasprzyk <onestone@opencompositing.org>2008-05-29 13:57:22 +0200
commit239de9a104f45bc7196fa76b19b4099783671a75 (patch)
treebe103fe6797e3f8f046093d78a2152edbd1fba28 /kde/window-decorator-kde4
parente1a0b9f6dabce5f37a3c20b090b1bae4d980f478 (diff)
Applied libdecoration changes to kde4 window decorator.
Diffstat (limited to 'kde/window-decorator-kde4')
-rw-r--r--kde/window-decorator-kde4/window.cpp80
1 files changed, 44 insertions, 36 deletions
diff --git a/kde/window-decorator-kde4/window.cpp b/kde/window-decorator-kde4/window.cpp
index c73f7711..b13dc23d 100644
--- a/kde/window-decorator-kde4/window.cpp
+++ b/kde/window-decorator-kde4/window.cpp
@@ -2027,15 +2027,17 @@ KWD::Window::processDamage (void)
{
r2.translate (-xOff, -yOff);
- decor_blend_top_border_picture (QX11Info::display(),
- &mContext,
- mPicture,
- xOff, xOff,
- mTexturePicture,
- &mLayout,
- r2.handle (),
- (unsigned short) (alpha * 0xffff),
- shade_alpha);
+ decor_blend_border_picture (QX11Info::display(),
+ &mContext,
+ mPicture,
+ xOff, xOff,
+ mTexturePicture,
+ &mLayout,
+ BORDER_TOP,
+ r2.handle (),
+ (unsigned short) (alpha * 0xffff),
+ shade_alpha,
+ TRUE);
}
xOff = 0;
@@ -2048,15 +2050,17 @@ KWD::Window::processDamage (void)
{
r2.translate (-xOff, -yOff);
- decor_blend_bottom_border_picture (QX11Info::display(),
- &mContext,
- mPicture,
- xOff, yOff,
- mTexturePicture,
- &mLayout,
- r2.handle (),
- (unsigned short) (alpha * 0xffff),
- shade_alpha);
+ decor_blend_border_picture (QX11Info::display(),
+ &mContext,
+ mPicture,
+ xOff, yOff,
+ mTexturePicture,
+ &mLayout,
+ BORDER_BOTTOM,
+ r2.handle (),
+ (unsigned short) (alpha * 0xffff),
+ shade_alpha,
+ TRUE);
}
xOff = 0;
@@ -2069,15 +2073,17 @@ KWD::Window::processDamage (void)
{
r2.translate (-xOff, -yOff);
- decor_blend_left_border_picture (QX11Info::display(),
- &mContext,
- mPicture,
- xOff, yOff,
- mTexturePicture,
- &mLayout,
- r2.handle (),
- (unsigned short) (alpha * 0xffff),
- shade_alpha);
+ decor_blend_border_picture (QX11Info::display(),
+ &mContext,
+ mPicture,
+ xOff, yOff,
+ mTexturePicture,
+ &mLayout,
+ BORDER_LEFT,
+ r2.handle (),
+ (unsigned short) (alpha * 0xffff),
+ shade_alpha,
+ TRUE);
}
xOff = mContext.extents.left + mGeometry.width ();
@@ -2090,15 +2096,17 @@ KWD::Window::processDamage (void)
{
r2.translate (-xOff, -yOff);
- decor_blend_right_border_picture (QX11Info::display(),
- &mContext,
- mPicture,
- xOff, yOff,
- mTexturePicture,
- &mLayout,
- r2.handle (),
- (unsigned short) (alpha * 0xffff),
- shade_alpha);
+ decor_blend_border_picture (QX11Info::display(),
+ &mContext,
+ mPicture,
+ xOff, yOff,
+ mTexturePicture,
+ &mLayout,
+ BORDER_RIGHT,
+ r2.handle (),
+ (unsigned short) (alpha * 0xffff),
+ shade_alpha,
+ TRUE);
}
mDamage = QRegion ();