tonly print if it has a name - wmutils - X windows manipulation utilities
 (HTM) git clone git://z3bra.org/wmutils
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4747b2ad6e2de015c915c1590dd6338170729ebd
 (DIR) parent 818e24dc4011cb4f249bd6e2dabd5f70e4157b5c
 (HTM) Author: dcat <dcat@iotek.org>
       Date:   Tue,  2 Dec 2014 19:55:00 +0100
       
       only print if it has a name
       
       Diffstat:
         M wname.c                             |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/wname.c b/wname.c
       t@@ -35,6 +35,8 @@ get_title (xcb_window_t win)
        
                if (r) {
                        len = xcb_get_property_value_length(r);
       +                if (!len)
       +                        return 1;
                        printf("%.*s\n", len, (char *) xcb_get_property_value(r));
        
                        return 0;