]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/mplex.c
Merge commit '20081002' into HEAD
[ion3.git] / ioncore / mplex.c
index 4506ea744077de18167888058ad67883f4d19f38..7c511e75f3ec4ce7edcd88ffdaf04bd7dadf8d70 100644 (file)
@@ -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;