From d310605a64b58f0e587e42e8b868ae488e5e8221 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 12 Aug 2008 08:47:29 +0200 Subject: [PATCH] clients: fix manage on restart We do not manage if they _don't_ have awesome prop. Signed-off-by: Julien Danjou --- awesome.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index c258f5c79..3f9360187 100644 --- a/awesome.c +++ b/awesome.c @@ -109,9 +109,8 @@ scan(void) has_awesome_prop = xutil_text_prop_get(globalconf.connection, wins[1], _AWESOME_PROPERTIES, NULL, NULL); if(!attr_r || attr_r->override_redirect - || has_awesome_prop - || attr_r->map_state != XCB_MAP_STATE_VIEWABLE - || state == XCB_WM_WITHDRAWN_STATE) + || (attr_r->map_state != XCB_MAP_STATE_VIEWABLE && !has_awesome_prop) + || (state == XCB_WM_WITHDRAWN_STATE && !has_awesome_prop)) { p_delete(&attr_r); continue;