aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-09-05 23:54:57 +0200
committerUlrich Sibiller <uli42@gmx.de>2020-01-05 22:37:36 +0100
commit8836547418f29a01e10c38316a4dc6751266dd30 (patch)
tree60fa6399c151112e2e184eaaa01b2f2860302155 /nx-X11/programs/Xserver/hw/nxagent
parentdbe3cc1f73d717aea9dc37262523c079e368e27a (diff)
downloadnx-libs-8836547418f29a01e10c38316a4dc6751266dd30.tar.gz
nx-libs-8836547418f29a01e10c38316a4dc6751266dd30.tar.bz2
nx-libs-8836547418f29a01e10c38316a4dc6751266dd30.zip
Composite.c: scope improvement
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Composite.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Composite.c b/nx-X11/programs/Xserver/hw/nxagent/Composite.c
index 40e4af8a0..af29f8ebc 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Composite.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Composite.c
@@ -115,8 +115,6 @@ void nxagentCompositeExtensionInit(void)
void nxagentRedirectDefaultWindows(void)
{
- int i;
-
if (nxagentOption(Rootless) == 1 ||
nxagentCompositeEnable == 0)
{
@@ -129,7 +127,7 @@ void nxagentRedirectDefaultWindows(void)
return;
}
- for (i = 0; i < screenInfo.numScreens; i++)
+ for (int i = 0; i < screenInfo.numScreens; i++)
{
WindowPtr pWin = screenInfo.screens[i]->root;