Commit 39bf8d9d authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Rootless.c: undo overzealous scope improvement

It is better to create the values array once and not on every iteration..
parent dfb18f8f
...@@ -332,17 +332,17 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren) ...@@ -332,17 +332,17 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren)
WindowPtr pWin = screenInfo.screens[0]->root -> firstChild; WindowPtr pWin = screenInfo.screens[0]->root -> firstChild;
XID values[2] = {0, (XID) Above};
for (int i = ntoplevel; i-- && pWin; pWin = toplevel[i] -> nextSib) for (int i = ntoplevel; i-- && pWin; pWin = toplevel[i] -> nextSib)
{ {
XID values[2] = {0, (XID) Above};
if (toplevel[i] != pWin) if (toplevel[i] != pWin)
{ {
Mask mask = CWSibling | CWStackMode; Mask mask = CWSibling | CWStackMode;
values[0] = pWin -> drawable.id; values[0] = pWin -> drawable.id;
ClientPtr pClient = wClient(toplevel[i]); ClientPtr pClient = wClient(toplevel[i]);
nxagentScreenTrap = 1; nxagentScreenTrap = 1;
ConfigureWindow(toplevel[i], mask, (XID *) values, pClient); ConfigureWindow(toplevel[i], mask, values, pClient);
nxagentScreenTrap = 0; nxagentScreenTrap = 0;
#ifdef TEST #ifdef TEST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment