summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-08-05 00:09:38 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-08-05 00:09:38 +0800
commit540873ce41df4415d4f11f45c49956bd2f0ed946 (patch)
tree331ed9efa21758417d1b8ce8e16bfe1fe578d423
parent6cba4ae8c5a8b28f4fed1e8652da0c50ffc268f6 (diff)
downloadshelf-540873ce41df4415d4f11f45c49956bd2f0ed946.tar.gz
shelf-540873ce41df4415d4f11f45c49956bd2f0ed946.tar.bz2
Interface ::damageRect correctly, previous behaviour would damage the entire window region and not the miniaturized one
-rw-r--r--src/shelf.cpp2
-rw-r--r--src/shelf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shelf.cpp b/src/shelf.cpp
index 7c1c69b..fab86cc 100644
--- a/src/shelf.cpp
+++ b/src/shelf.cpp
@@ -637,7 +637,7 @@ ShelfScreen::handleEvent (XEvent *event)
bool
ShelfWindow::damageRect (bool initial,
- CompRect &rect)
+ const CompRect &rect)
{
bool status = false;
diff --git a/src/shelf.h b/src/shelf.h
index 59052df..a3f6e22 100644
--- a/src/shelf.h
+++ b/src/shelf.h
@@ -87,7 +87,7 @@ class ShelfWindow :
moveNotify (int, int, bool);
bool
- damageRect (bool, CompRect &);
+ damageRect (bool, const CompRect &);
bool
glPaint (const GLWindowPaintAttrib &,