- for (it = struts_bottom[d]; it; it = g_slist_next(it)) {
- StrutPartial *s = it->data;
- if (STRUT_BOTTOM_IN_SEARCH(s, search) &&
- !STRUT_BOTTOM_IGNORE(s, us, search))
- b = MIN(b, ar - s->bottom);
+ for (it = struts_bottom; it; it = g_slist_next(it)) {
+ ObScreenStrut *s = it->data;
+ if (s->desktop == d &&
+ STRUT_BOTTOM_IN_SEARCH(s->strut, search) &&
+ !STRUT_BOTTOM_IGNORE(s->strut, us, search))
+ b = MIN(b, ar - s->strut->bottom);