summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-13 02:07:21 +0000
committerDana Jansens <danakj@orodu.net>2007-06-13 02:07:21 +0000
commit809619497d73598a9f3c2bd2e4b8968297af6bfd (patch)
tree1e936146fb8c2e58e3acbd79f1b1eb5ce71aef88 /openbox
parent5d9e0fe2d252b0e3238096d38515745fbb592d8f (diff)
bugfix
Diffstat (limited to 'openbox')
-rw-r--r--openbox/screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 7422791e..613f774f 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -1246,21 +1246,21 @@ Rect* screen_area_monitor(guint desktop, guint head, Rect *search)
}
for (it = struts_right; it; it = g_slist_next(it)) {
StrutPartial *s = it->data;
- if (!search == 0 ||
+ if (!search ||
RANGE_INTERSECT(search->y, search->height,
s->right_start, s->right_end - s->right_start + 1))
r = MAX(r, s->right);
}
for (it = struts_top; it; it = g_slist_next(it)) {
StrutPartial *s = it->data;
- if (!search == 0 ||
+ if (!search ||
RANGE_INTERSECT(search->x, search->width,
s->top_start, s->top_end - s->top_start + 1))
t = MAX(t, s->top);
}
for (it = struts_bottom; it; it = g_slist_next(it)) {
StrutPartial *s = it->data;
- if (search->width == 0 ||
+ if (!search ||
RANGE_INTERSECT(search->x, search->width,
s->bottom_start,
s->bottom_end - s->bottom_start + 1))