From: Mikael Magnusson Date: Sat, 19 Aug 2006 15:22:55 +0000 (+0000) Subject: stacking_list contains ObWindows that may or may not be ObClients X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=fa6497060ae559d4c0b59ccdfc918c74f7db42d8;p=chaz%2Fopenbox stacking_list contains ObWindows that may or may not be ObClients --- diff --git a/openbox/action.c b/openbox/action.c index c0195dd8..a30e6047 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1095,17 +1095,19 @@ void action_raiselower(union ActionData *data) gboolean raise = FALSE; for (it = stacking_list; it; it = g_list_next(it)) { - ObClient *cit = it->data; - - if (cit == c) break; - if (client_normal(cit) == client_normal(c) && - cit->layer == c->layer && - cit->frame->visible && - !client_search_transient(c, cit)) - { - if (RECT_INTERSECTS_RECT(cit->frame->area, c->frame->area)) { - raise = TRUE; - break; + if (WINDOW_IS_CLIENT(it->data)) { + ObClient *cit = it->data; + + if (cit == c) break; + if (client_normal(cit) == client_normal(c) && + cit->layer == c->layer && + cit->frame->visible && + !client_search_transient(c, cit)) + { + if (RECT_INTERSECTS_RECT(cit->frame->area, c->frame->area)) { + raise = TRUE; + break; + } } } }