stacking_list contains ObWindows that may or may not be ObClients

This commit is contained in:
Mikael Magnusson 2006-08-19 15:22:55 +00:00
parent 8d034c6f4d
commit fa6497060a

View file

@ -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 (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;
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;
}
}
}
}