summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2007-12-12 12:33:47 +0100
committerKristian Lyngstol <kristian@windu.lyngstol.net>2007-12-12 12:33:47 +0100
commitb982d3af31495b5b51493f45dfdb6c31b91a91bc (patch)
tree0324a53c13d77e4ac7d58a8cf0e144bacb4dd7a9
parent959d071da4d1cc04666196bde8ad0f5fb143a366 (diff)
downloadshelf-b982d3af31495b5b51493f45dfdb6c31b91a91bc.tar.gz
shelf-b982d3af31495b5b51493f45dfdb6c31b91a91bc.tar.bz2
Shape a frame window too
Fixes an issue where the frame still had input outside the visible area.
-rw-r--r--shelf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shelf.c b/shelf.c
index bcfdc52..745f320 100644
--- a/shelf.c
+++ b/shelf.c
@@ -69,6 +69,9 @@ shelfShapeInput (CompWindow *w)
XShapeSelectInput (w->screen->display->display, w->id, NoEventMask);
XShapeCombineRectangles (w->screen->display->display, w->id,
ShapeInput, 0, 0, &rect, 1, ShapeSet, 0);
+ if (w->frame)
+ XShapeCombineRectangles (w->screen->display->display, w->frame,
+ ShapeInput, 0, 0, &rect, 1, ShapeSet, 0);
XShapeSelectInput (w->screen->display->display, w->id, ShapeNotify);
}
/* Binding for toggle mode.