From 5c232572a38e9080a37edfa3eddd4a81a8a3a669 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 29 Mar 2010 11:17:51 +0200 Subject: [PATCH] Check for UNMAPPED instead of UNVIEWABLE A window is unmapped if it is not mapped (oh noes! ;). If it is mapped, it can be either mapped or unviewable. If any of its ancestors is unmapped, it's unviewable, else it's unmapped Since this code looks at children of the root window, it should never be seeing clients which are unviewable (can one unmap the root window at all...?). What this really wants to check for is unmapped, so this patch implements this. Signed-off-by: Uli Schlachter Signed-off-by: Julien Danjou --- awesome.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awesome.c b/awesome.c index 2412f17ae..b2657a152 100644 --- a/awesome.c +++ b/awesome.c @@ -159,7 +159,7 @@ scan(void) state = xwindow_get_state_reply(state_wins[i]); if(!attr_r || attr_r->override_redirect - || attr_r->map_state == XCB_MAP_STATE_UNVIEWABLE + || attr_r->map_state == XCB_MAP_STATE_UNMAPPED || state == XCB_WM_STATE_WITHDRAWN) { geom_wins[i] = NULL;