summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-03-20 08:59:17 +0100
committerDanny Baumann <dannybaumann@web.de>2009-03-20 08:59:17 +0100
commite93ace5e88c4a5965bdf4aae04ce9e814adcda70 (patch)
tree08980e6fdb75c6c7109297584fd81fd112f5a42b
parent52fa642f9f847f2a79a358aac17ed236898eadb1 (diff)
downloadput-e93ace5e88c4a5965bdf4aae04ce9e814adcda70.tar.gz
put-e93ace5e88c4a5965bdf4aae04ce9e814adcda70.tar.bz2
Use inputRect.
-rw-r--r--src/put.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/put.cpp b/src/put.cpp
index cb024b9..3dac660 100644
--- a/src/put.cpp
+++ b/src/put.cpp
@@ -47,8 +47,6 @@ PutScreen::emptyRegion (CompWindow *window,
foreach(CompWindow *w, screen->windows ())
{
- CompRect tmpRect;
-
if (w->id () == window->id ())
continue;
@@ -74,14 +72,7 @@ PutScreen::emptyRegion (CompWindow *window,
continue;
}
- tmpRect.setGeometry (w->serverX () - w->input ().left,
- w->serverY () - w->input ().top,
- w->serverWidth () +
- w->input ().right + w->input ().left,
- w->serverHeight () +
- w->input ().top + w->input ().bottom);
-
- newRegion -= tmpRect;
+ newRegion -= w->serverInputRect ();
}
return newRegion;