aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-05-26 00:08:03 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-17 22:38:05 +0200
commited4cbaeda12e0d8324c406ae3986274227f5f69f (patch)
tree0db55fd785ee9ca6e415f97d0873049f22aacf64 /nx-X11/programs
parent00d60a82e7b1b5ba62073ed891266709a59343f3 (diff)
downloadnx-libs-ed4cbaeda12e0d8324c406ae3986274227f5f69f.tar.gz
nx-libs-ed4cbaeda12e0d8324c406ae3986274227f5f69f.tar.bz2
nx-libs-ed4cbaeda12e0d8324c406ae3986274227f5f69f.zip
Screen.c: scope improvement
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index dbe1d5d56..909a34b2d 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -846,7 +846,6 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
int depthIndex;
unsigned long valuemask;
XSetWindowAttributes attributes;
- XWindowAttributes gattributes;
Mask mask;
Bool resetAgentPosition = False;
@@ -1424,6 +1423,8 @@ N/A
* and a GetGeometry (asynchronous) reply.
*/
+ XWindowAttributes gattributes;
+
XGetWindowAttributes(nxagentDisplay, nxagentParentWindow, &gattributes);
nxagentChangeOption(Width, gattributes.width);