X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fmplex.c;h=7c511e75f3ec4ce7edcd88ffdaf04bd7dadf8d70;hb=29aae1975d46f66b97a2b873f1875eded8c6fbc3;hp=4506ea744077de18167888058ad67883f4d19f38;hpb=831140ef97f8ad74f97b65346da5c3b70924311b;p=ion3.git diff --git a/ioncore/mplex.c b/ioncore/mplex.c index 4506ea7..7c511e7 100644 --- a/ioncore/mplex.c +++ b/ioncore/mplex.c @@ -667,6 +667,12 @@ static WStacking *mplex_do_to_focus_on(WMPlex *mplex, WStacking *node, st=mplex_find_to_focus(mplex, node, NULL, hidelist); + /* If 'node' points to a group, it isn't actually on the stacking list. + * Give it the focus, if there's nothing "proper" that could be focussed. + */ + if(st==NULL && grp!=NULL && REGION_IS_MAPPED(grp)) + st=node; + if(st==node && within!=NULL) *within=TRUE;