remove snext from Client struct

This commit is contained in:
Julien Danjou 2007-10-12 11:43:07 +02:00
parent 067b15bf7c
commit b89779677e
2 changed files with 2 additions and 3 deletions

View File

@ -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 is NULL or invisible, take next client in the stack */
if((!c && selscreen) || (c && !isvisible(c, awesomeconf->screen, awesomeconf->tags, awesomeconf->ntags))) 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 a client was selected but it's not the current client, unfocus it */
if(*awesomeconf->client_sel && *awesomeconf->client_sel != c) 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); XSetWindowBorder(awesomeconf->display, (*awesomeconf->client_sel)->win, awesomeconf->colors_selected[ColBorder].pixel);
XSetInputFocus(awesomeconf->display, (*awesomeconf->client_sel)->win, RevertToPointerRoot, CurrentTime); 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) if(c != *awesomeconf->client_sel)
setclienttrans(c, awesomeconf->opacity_unfocused); setclienttrans(c, awesomeconf->opacity_unfocused);
setclienttrans(*awesomeconf->client_sel, -1); setclienttrans(*awesomeconf->client_sel, -1);

View File

@ -114,7 +114,6 @@ struct Client
Client *next; Client *next;
/** Previous client */ /** Previous client */
Client *prev; Client *prev;
Client *snext;
/** Window of the client */ /** Window of the client */
Window win; Window win;
/** Client display */ /** Client display */