mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
remove snext from Client struct
This commit is contained in:
parent
067b15bf7c
commit
b89779677e
2 changed files with 2 additions and 3 deletions
4
client.c
4
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);
|
||||
|
|
1
config.h
1
config.h
|
@ -114,7 +114,6 @@ struct Client
|
|||
Client *next;
|
||||
/** Previous client */
|
||||
Client *prev;
|
||||
Client *snext;
|
||||
/** Window of the client */
|
||||
Window win;
|
||||
/** Client display */
|
||||
|
|
Loading…
Reference in a new issue