URI:
       tmapw: can now report wether windows are mapped or not - wmutils - X windows manipulation utilities
  HTML git clone git://z3bra.org/wmutils
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 24476a5a737c678bfdeae3ce97dbc1fac1af0797
   DIR parent ef360bdd5009e0dab8da2e6c7c4df47b50f18ff8
  HTML Author: z3bra <willy@mailoo.org>
       Date:   Mon,  1 Dec 2014 19:00:05 +0100
       
       mapw: can now report wether windows are mapped or not
       
       Diffstat:
         M mapw.c                              |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/mapw.c b/mapw.c
       t@@ -73,7 +73,7 @@ main(int argc, char **argv)
                        default : usage();
                } ARGEND;
        
       -        if (argc < 1 || mapflag == 0)
       +        if (argc < 1)
                        usage();
        
                atexit(cleanup);
       t@@ -96,6 +96,8 @@ main(int argc, char **argv)
                                        xcb_map_window(conn, w);
                                }
                                break;
       +                default:
       +                        return ismapped(w) ? 0 : 1;
                        }
                }
                xcb_flush(conn);