]> Dogcows Code - chaz/openbox/commitdiff
bugfix
authorDana Jansens <danakj@orodu.net>
Wed, 13 Jun 2007 02:07:21 +0000 (02:07 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 13 Jun 2007 02:07:21 +0000 (02:07 +0000)
openbox/screen.c

index 7422791ed82f282903906819a0348de0367fd59e..613f774f71d03e2b2cafd8c6e8710d75f814d12a 100644 (file)
@@ -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;
     }
     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;
             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;
             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))
             RANGE_INTERSECT(search->x, search->width,
                             s->bottom_start,
                             s->bottom_end - s->bottom_start + 1))
This page took 0.028349 seconds and 4 git commands to generate.