- st=mplex_do_to_focus(mplex, to_try, NULL);
-
- return (st!=NULL
- ? st
- : (mplex->mx_current!=NULL
- ? mplex->mx_current->st
- : NULL));
+ if(foc!=NULL){
+ /* In the history search case, 'foc' might point to a group,
+ * since we don't properly try to find a stacking within it...
+ */
+ return mplex_do_to_focus_on(mplex, foc, NULL, NULL, NULL);
+ }else{
+ return mplex_find_to_focus(mplex, NULL, NULL, NULL);
+ }