missed a case of using the stacking list and assuming that its all clients still. fixed that assumption now.
This commit is contained in:
parent
493e7d4a6e
commit
b69473054b
1 changed files with 9 additions and 5 deletions
|
@ -122,14 +122,18 @@ static gboolean focus_under_pointer()
|
|||
|
||||
if (ob_pointer_pos(&x, &y)) {
|
||||
for (it = stacking_list; it != NULL; it = it->next) {
|
||||
Client *c = it->data;
|
||||
if (WINDOW_IS_CLIENT(it->data)) {
|
||||
Client *c = WINDOW_AS_CLIENT(it->data);
|
||||
if (c->desktop == screen_desktop &&
|
||||
RECT_CONTAINS(c->frame->area, x, y))
|
||||
break;
|
||||
}
|
||||
if (it != NULL)
|
||||
}
|
||||
if (it != NULL) {
|
||||
g_assert(WINDOW_IS_CLIENT(it->data));
|
||||
return client_normal(it->data) && client_focus(it->data);
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue