diff options
author | Kimmo Hämäläinen <kimmo.hamalainen@nokia.com> | 2010-10-18 15:36:11 +0300 |
---|---|---|
committer | Kimmo Hämäläinen <kimmo.hamalainen@nokia.com> | 2010-10-22 11:11:51 +0300 |
commit | 821ed5ef073af772b75508ed1ea2297a07fcf733 (patch) | |
tree | d91ee5a6aa169e2d651c1ce04d5deabd76e001b6 /src/mcompositescene.cpp | |
parent | 0d7e8e0b2f754b51a270ef378244f6280b037cd7 (diff) |
implement shaped composite overlay
- remove now deprecated MapRequester class
- remove unneeded (-2,-2) placing
- move overlay shape to MCompositeManager to access class members
Diffstat (limited to 'src/mcompositescene.cpp')
-rw-r--r-- | src/mcompositescene.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mcompositescene.cpp b/src/mcompositescene.cpp index 239e991..949da1a 100644 --- a/src/mcompositescene.cpp +++ b/src/mcompositescene.cpp @@ -74,28 +74,6 @@ void MCompositeScene::prepareRoot() XSetErrorHandler(error_handler); } - -void MCompositeScene::setupOverlay(Window window, const QRect &geom, - bool restoreInput) -{ - Display *dpy = QX11Info::display(); - XRectangle rect; - - rect.x = geom.x(); - rect.y = geom.y(); - rect.width = geom.width(); - rect.height = geom.height(); - XserverRegion region = XFixesCreateRegion(dpy, &rect, 1); - - XFixesSetWindowShapeRegion(dpy, window, ShapeBounding, 0, 0, 0); - if (!restoreInput) - XFixesSetWindowShapeRegion(dpy, window, ShapeInput, 0, 0, region); - else - XFixesSetWindowShapeRegion(dpy, window, ShapeInput, 0, 0, 0); - - XFixesDestroyRegion(dpy, region); -} - void MCompositeScene::drawItems(QPainter *painter, int numItems, QGraphicsItem *items[], const QStyleOptionGraphicsItem options[], QWidget *widget) { QRegion visible(sceneRect().toRect()); |