diff --git a/client.c b/client.c index aa77266e..651e2310 100644 --- a/client.c +++ b/client.c @@ -301,7 +301,7 @@ focus(Display *disp, Client * c, Bool selscreen, awesome_config *awesomeconf) { /* if c is NULL or invisible, take next client in the stack */ if((!c && selscreen) || (c && !isvisible(c, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags))) - for(c = *awesomeconf->clients; c && !isvisible(c, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags); c = c->snext); + for(c = *awesomeconf->clients; c && !isvisible(c, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags); c = c->next); /* if a client was selected but it's not the current client, unfocus it */ if(*awesomeconf->client_sel && *awesomeconf->client_sel != c) @@ -322,7 +322,7 @@ focus(Display *disp, Client * c, Bool selscreen, awesome_config *awesomeconf) { XSetWindowBorder(awesomeconf->display, (*awesomeconf->client_sel)->win, awesomeconf->colors_selected[ColBorder].pixel); XSetInputFocus(awesomeconf->display, (*awesomeconf->client_sel)->win, RevertToPointerRoot, CurrentTime); - for(c = *awesomeconf->clients; c; c = c->snext) + for(c = *awesomeconf->clients; c; c = c->next) if(c != *awesomeconf->client_sel) setclienttrans(c, awesomeconf->opacity_unfocused); setclienttrans(*awesomeconf->client_sel, -1); diff --git a/config.h b/config.h index c4cf8d88..d69ab339 100644 --- a/config.h +++ b/config.h @@ -114,7 +114,6 @@ struct Client Client *next; /** Previous client */ Client *prev; - Client *snext; /** Window of the client */ Window win; /** Client display */