summaryrefslogtreecommitdiff
path: root/src/privatewindow.h
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-08-19 20:58:20 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-08-19 20:58:20 +0800
commitc12c84848c3e8501c6d7330ad970e034c41b1cd6 (patch)
tree23446df663cc7b3cd3f35457f326f1bec7a4c03e /src/privatewindow.h
parentd308af97d74b21571368cef0dd7935c77a60b040 (diff)
downloadmobileperf-c12c84848c3e8501c6d7330ad970e034c41b1cd6.tar.gz
mobileperf-c12c84848c3e8501c6d7330ad970e034c41b1cd6.tar.bz2
Fix some other places we were using priv->attrib incorrectly
Diffstat (limited to 'src/privatewindow.h')
-rw-r--r--src/privatewindow.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/privatewindow.h b/src/privatewindow.h
index 91624e4..a20a01c 100644
--- a/src/privatewindow.h
+++ b/src/privatewindow.h
@@ -36,10 +36,14 @@
#define WINDOW_INVISIBLE(w) \
((w)->attrib.map_state != IsViewable || \
- (w)->attrib.x + (w)->width + (w)->output.right <= 0 || \
- (w)->attrib.y + (w)->height + (w)->output.bottom <= 0 || \
- (w)->attrib.x - (w)->output.left >= (int) screen->width () || \
- (w)->attrib.y - (w)->output.top >= (int) screen->height () )
+ (w)->geometry.x () + (w)->geometry.width () + \
+ (w)->geometry.border () * 2 + (w)->output.right <= 0 || \
+ (w)->geometry.y () + (w)->geometry.height () + \
+ (w)->geometry.border () * 2 + (w)->output.bottom <= 0 || \
+ (w)->geometry.x () - \
+ (w)->output.left >= (int) screen->width () || \
+ (w)->geometry.y () - \
+ (w)->output.top >= (int) screen->height () )
typedef CompWindowExtents CompFullscreenMonitorSet;