X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Fmplex.c;fp=ioncore%2Fmplex.c;h=7c511e75f3ec4ce7edcd88ffdaf04bd7dadf8d70;hp=4506ea744077de18167888058ad67883f4d19f38;hb=2948134dc6273f6d3ea089c4cc273b69e2f8d51e;hpb=69ec7e63f6c39c98c82e8878e672215792ecfd7b 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;