aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-30 17:35:47 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-09-29 17:10:05 +0200
commit7404d2178e7877cc3b92b0241df800e0963342b9 (patch)
treedb0b586a9492455f1c6c0a6aba92a315ea6ea5c8 /nx-X11/programs/Xserver
parent3d37db0719648775ab61b91016c64431e18f829e (diff)
downloadnx-libs-7404d2178e7877cc3b92b0241df800e0963342b9.tar.gz
nx-libs-7404d2178e7877cc3b92b0241df800e0963342b9.tar.bz2
nx-libs-7404d2178e7877cc3b92b0241df800e0963342b9.zip
Events.c: fix wrong returncode interpretation
XGetWMName returns non-zero on success The result was that no window names were displayed in DEBUG_TREE remote windows tree output.
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index 1a3085448..8f68084a4 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -372,7 +372,7 @@ void nxagentRemoteWindowID(Window window, Bool newline)
#else
- if (XGetWMName(nxagentDisplay, window, &tp) != 0)
+ if (XGetWMName(nxagentDisplay, window, &tp) == 0)
{
fprintf(stderr, " (has no name) ");
}