From d3cb4e8408cde0e426a7c8a4c52a98af4884bbbf Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 11 Apr 2003 22:45:57 +0000 Subject: * src/manage.c (get_wmname): add a debug line to print the property returned. (get_wmname): add newline in debug print out. (get_wmname): fail if n is 0. --- src/manage.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/manage.c b/src/manage.c index a0bee7f..26a14ee 100644 --- a/src/manage.c +++ b/src/manage.c @@ -110,6 +110,13 @@ get_wmname (Window w) return NULL; } + if (n == 0) + { + PRINT_DEBUG (("I can't get the WMName.\n")); + XFree (name); + return NULL; + } + PRINT_DEBUG (("WM_NAME: '%s'\n", name)); /* duplicate the string into our own buffer, and free the one given -- cgit v1.2.3