Fix client_focus_next/prev_tab to get only parent tabbed client

This commit is contained in:
Martin Duquesnoy 2012-01-12 14:39:49 +01:00
parent 35a40f8b71
commit b3309676b2

View File

@ -99,7 +99,7 @@ client_next_tab(struct client *c)
if(!(c->flags & CLIENT_TABMASTER))
return NULL;
while(!(n->flags & CLIENT_TABBED) && n != c)
while((!(n->flags & CLIENT_TABBED) || n->tabmaster != c) && n != c)
n = client_next(n);
return n;
@ -113,7 +113,7 @@ client_prev_tab(struct client *c)
if(!(c->flags & CLIENT_TABMASTER))
return NULL;
while(!(p->flags & CLIENT_TABBED) && p != c)
while((!(p->flags & CLIENT_TABBED) || p->tabmaster != c) && p != c)
p = client_prev(p);
return p;