aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-01-18 00:27:59 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-07 12:55:04 +0200
commite44a93b0b99f25074d2a82f84b1530008feb5b73 (patch)
tree6e891e77cc6fccd1d9eb785bbb77f2c0210d211c /nx-X11/programs/Xserver
parentca531cce24f232cf702fe673b86a2b0934c1c6ef (diff)
downloadnx-libs-e44a93b0b99f25074d2a82f84b1530008feb5b73.tar.gz
nx-libs-e44a93b0b99f25074d2a82f84b1530008feb5b73.tar.bz2
nx-libs-e44a93b0b99f25074d2a82f84b1530008feb5b73.zip
Splash.c: some reformatting
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Splash.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Splash.c b/nx-X11/programs/Xserver/hw/nxagent/Splash.c
index 48ddda520..645e421a3 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Splash.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Splash.c
@@ -65,10 +65,6 @@ static void nxagentPaintLogo(XlibWindow win, XlibGC gc, int scale, int width, in
void nxagentShowSplashWindow(XlibWindow parentWindow)
{
- XWindowAttributes getAttributes;
- XWindowChanges values;
- XSetWindowAttributes attributes;
-
/*
* Show splash window only when running as X2Go Agent
*/
@@ -94,19 +90,19 @@ void nxagentShowSplashWindow(XlibWindow parentWindow)
nxagentWMPassed = False;
+ XWindowAttributes getAttributes;
+
/*
- * This would cause a GetWindowAttributes and a
- * GetGeometry (asynchronous) reply. We use instead
- * the geometry requested by the user for the agent
- * window.
+ * This would cause a GetWindowAttributes and a GetGeometry
+ * (asynchronous) reply. We use instead the geometry requested by
+ * the user for the agent window.
*
* XGetWindowAttributes(nxagentDisplay, parentWindow, &getAttributes);
*/
/*
- * During reconnection we draw the splash over
- * the default window and not over the root
- * window because it would be hidden by other
+ * During reconnection we draw the splash over the default window
+ * and not over the root window because it would be hidden by other
* windows.
*/
@@ -145,9 +141,9 @@ void nxagentShowSplashWindow(XlibWindow parentWindow)
XlibGC gc = XCreateGC(nxagentDisplay, nxagentSplashWindow, 0, NULL);
nxagentPaintLogo(nxagentSplashWindow, gc, 1, getAttributes.width, getAttributes.height);
XMapRaised (nxagentDisplay, nxagentSplashWindow);
- values.stack_mode = Above;
+ XWindowChanges values = {.stack_mode = Above};
XConfigureWindow(nxagentDisplay, nxagentSplashWindow, CWStackMode, &values);
- attributes.override_redirect = True;
+ XSetWindowAttributes attributes = {.override_redirect = True};
XChangeWindowAttributes(nxagentDisplay, nxagentSplashWindow, CWOverrideRedirect, &attributes);
XFreeGC(nxagentDisplay, gc);