Don't allow to tab client from different screen

This commit is contained in:
Martin Duquesnoy 2012-01-16 17:01:32 +01:00
parent 527d62f700
commit c59b69869a
2 changed files with 3 additions and 2 deletions

View File

@ -453,7 +453,8 @@ void
_client_tab(struct client *c, struct client *cm)
{
/* Do not tab already tabed client */
if(c->flags & (CLIENT_TABBED | CLIENT_TABMASTER))
if(c->flags & (CLIENT_TABBED | CLIENT_TABMASTER)
|| c->tag != cm->tag)
return;
layout_split_arrange_closed(c);

View File

@ -34,7 +34,7 @@ static void
fifo_parse(char *cmd)
{
void (*func)(Uicb);
char *p = NULL, *arg = NULL;
char *p, *arg = NULL;
/* remove trailing newline */
if((p = strchr(cmd, '\n')))