stacking: Rename EwinListStack to EobjListStack

More appropriate, it holds all the EObjs.
This commit is contained in:
Kim Woelders 2022-04-03 19:21:58 +02:00
parent 33dc371131
commit a67b247ff2
1 changed files with 12 additions and 12 deletions

View File

@ -273,7 +273,7 @@ EobjListTypeCount(const EobjList * ewl, int type)
/* /*
* The global object/client lists * The global object/client lists
*/ */
static EobjList EwinListStack = { "Stack", 0, 0, NULL, 1, 0 }; static EobjList EobjListStack = { "Stack", 0, 0, NULL, 1, 0 };
static EobjList EwinListFocus = { "Focus", 0, 0, NULL, 0, 1 }; static EobjList EwinListFocus = { "Focus", 0, 0, NULL, 0, 1 };
static EobjList EwinListOrder = { "Order", 0, 0, NULL, 0, 2 }; static EobjList EwinListOrder = { "Order", 0, 0, NULL, 0, 2 };
@ -287,43 +287,43 @@ EobjListGet(EobjList * ewl, int *num)
int int
EobjListStackCheck(EObj * eo) EobjListStackCheck(EObj * eo)
{ {
return EobjListGetIndex(&EwinListStack, eo); return EobjListGetIndex(&EobjListStack, eo);
} }
EObj * EObj *
EobjListStackFind(EX_Window win) EobjListStackFind(EX_Window win)
{ {
return EobjListFind(&EwinListStack, win); return EobjListFind(&EobjListStack, win);
} }
EObj *const * EObj *const *
EobjListStackGet(int *num) EobjListStackGet(int *num)
{ {
return EobjListGet(&EwinListStack, num); return EobjListGet(&EobjListStack, num);
} }
void void
EobjListStackAdd(EObj * eo, int ontop) EobjListStackAdd(EObj * eo, int ontop)
{ {
EobjListAdd(&EwinListStack, eo, ontop); EobjListAdd(&EobjListStack, eo, ontop);
} }
void void
EobjListStackDel(EObj * eo) EobjListStackDel(EObj * eo)
{ {
EobjListDel(&EwinListStack, eo); EobjListDel(&EobjListStack, eo);
} }
int int
EobjListStackRaise(EObj * eo, int test) EobjListStackRaise(EObj * eo, int test)
{ {
return EobjListRaise(&EwinListStack, eo, test); return EobjListRaise(&EobjListStack, eo, test);
} }
int int
EobjListStackLower(EObj * eo, int test) EobjListStackLower(EObj * eo, int test)
{ {
return EobjListLower(&EwinListStack, eo, test); return EobjListLower(&EobjListStack, eo, test);
} }
void void
@ -353,7 +353,7 @@ EwinListStackGet(int *num)
int i, j; int i, j;
EObj *eo; EObj *eo;
ewl = &EwinListStack; ewl = &EobjListStack;
for (i = j = 0; i < ewl->nwins; i++) for (i = j = 0; i < ewl->nwins; i++)
{ {
@ -389,7 +389,7 @@ EwinListGetForDesk(int *num, Desk * dsk)
int i, j; int i, j;
EObj *eo; EObj *eo;
ewl = &EwinListStack; ewl = &EobjListStack;
for (i = j = 0; i < ewl->nwins; i++) for (i = j = 0; i < ewl->nwins; i++)
{ {
@ -419,7 +419,7 @@ EobjListStackGetForDesk(int *num, Desk * dsk)
int i, j; int i, j;
EObj *eo; EObj *eo;
ewl = &EwinListStack; ewl = &EobjListStack;
/* Too many - who cares. */ /* Too many - who cares. */
if (nalloc < ewl->nwins) if (nalloc < ewl->nwins)
@ -448,7 +448,7 @@ EwinListStackIsRaised(const EWin * ewin)
int i; int i;
const EObj *eo, *eox; const EObj *eo, *eox;
ewl = &EwinListStack; ewl = &EobjListStack;
eox = EoObj(ewin); eox = EoObj(ewin);
for (i = 0; i < ewl->nwins; i++) for (i = 0; i < ewl->nwins; i++)