all repos — openbox @ b69473054b3cb2e47192e892ce834bf34f56003b

openbox fork - make it a bit more like ryudo

missed a case of using the stacking list and assuming that its all clients still. fixed that assumption now.
Dana Jansens danakj@orodu.net
commit

b69473054b3cb2e47192e892ce834bf34f56003b

parent

493e7d4a6ec5a3fc5e6677d21b9940dc2e17b4ac

1 files changed, 9 insertions(+), 5 deletions(-)

jump to
M openbox/focus.copenbox/focus.c

@@ -122,13 +122,17 @@ GList *it;

if (ob_pointer_pos(&x, &y)) { for (it = stacking_list; it != NULL; it = it->next) { - Client *c = it->data; - if (c->desktop == screen_desktop && - RECT_CONTAINS(c->frame->area, x, y)) - break; + 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; }