Test W->client in tag_client* uicbs

This commit is contained in:
Martin Duquesnoy 2012-02-06 09:57:06 +01:00
parent 33bcc29e83
commit 5508a565a1

View File

@ -181,7 +181,7 @@ uicb_tag_client(Uicb cmd)
struct tag *t;
int id = ATOI(cmd);
if((t = tag_gb_id(W->screen, id)))
if(W->client && (t = tag_gb_id(W->screen, id)))
tag_client(t, W->client);
}
@ -191,6 +191,9 @@ uicb_tag_move_client_next(Uicb cmd)
(void)cmd;
struct tag *t;
if(!W->client)
return;
if((t = TAILQ_NEXT(W->screen->seltag, next)))
tag_client(t, W->client);
else if( /* CIRCULAR OPTION */ 1)
@ -203,6 +206,9 @@ uicb_tag_move_client_prev(Uicb cmd)
(void)cmd;
struct tag *t;
if(!W->client)
return;
if((t = TAILQ_PREV(W->screen->seltag, tsub, next)))
tag_client(t, W->client);
else if( /* CIRCULAR OPTION */ 1)