Commit 7404d217 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

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.
parent 3d37db07
......@@ -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) ");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment