wmutils

X windows manipulation utilities
git clone git://z3bra.org/wmutils
Log | Files | Refs | LICENSE

commit 24476a5a737c678bfdeae3ce97dbc1fac1af0797
parent ef360bdd5009e0dab8da2e6c7c4df47b50f18ff8
Author: z3bra <willy@mailoo.org>
Date:   Mon Dec  1 19:00:05 2014

mapw: can now report wether windows are mapped or not

Diffstat:
 mapw.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mapw.c b/mapw.c @@ -73,7 +73,7 @@ main(int argc, char **argv) default : usage(); } ARGEND; - if (argc < 1 || mapflag == 0) + if (argc < 1) usage(); atexit(cleanup); @@ -96,6 +96,8 @@ main(int argc, char **argv) xcb_map_window(conn, w); } break; + default: + return ismapped(w) ? 0 : 1; } } xcb_flush(conn);