stacking_list contains ObWindows that may or may not be ObClients
This commit is contained in:
parent
8d034c6f4d
commit
fa6497060a
1 changed files with 12 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue