From ed4cbaeda12e0d8324c406ae3986274227f5f69f Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Tue, 26 May 2020 00:08:03 +0200 Subject: Screen.c: scope improvement --- nx-X11/programs/Xserver/hw/nxagent/Screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3