diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-01-09 00:13:23 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-05-07 12:55:04 +0200 |
commit | 39bf8d9d723c7e1fe39694e9d0da164692bcbdf9 (patch) | |
tree | 1e6c2faef07f3542c3a4026be461b316b67b5bc1 | |
parent | dfb18f8fe7c921584b5fcc48a88219151bed6ae3 (diff) | |
download | nx-libs-39bf8d9d723c7e1fe39694e9d0da164692bcbdf9.tar.gz nx-libs-39bf8d9d723c7e1fe39694e9d0da164692bcbdf9.tar.bz2 nx-libs-39bf8d9d723c7e1fe39694e9d0da164692bcbdf9.zip |
Rootless.c: undo overzealous scope improvement
It is better to create the values array once and not on every iteration..
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Rootless.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c index 2adb254f6..77843b851 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c @@ -332,17 +332,17 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren) WindowPtr pWin = screenInfo.screens[0]->root -> firstChild; + XID values[2] = {0, (XID) Above}; + for (int i = ntoplevel; i-- && pWin; pWin = toplevel[i] -> nextSib) { - XID values[2] = {0, (XID) Above}; - if (toplevel[i] != pWin) { Mask mask = CWSibling | CWStackMode; values[0] = pWin -> drawable.id; ClientPtr pClient = wClient(toplevel[i]); nxagentScreenTrap = 1; - ConfigureWindow(toplevel[i], mask, (XID *) values, pClient); + ConfigureWindow(toplevel[i], mask, values, pClient); nxagentScreenTrap = 0; #ifdef TEST |