diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-30 17:35:47 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-09-29 17:10:05 +0200 |
commit | 7404d2178e7877cc3b92b0241df800e0963342b9 (patch) | |
tree | db0b586a9492455f1c6c0a6aba92a315ea6ea5c8 /nx-X11 | |
parent | 3d37db0719648775ab61b91016c64431e18f829e (diff) | |
download | nx-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')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Events.c | 2 |
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) "); } |