summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manage.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/manage.c b/manage.c
index 62c0ad5..2ed6af9 100644
--- a/manage.c
+++ b/manage.c
@@ -162,8 +162,12 @@ scanwins(screen_info *s)
XGetWindowAttributes(dpy, wins[i], &attr);
if (wins[i] == s->bar_window || wins[i] == s->key_window) continue;
- win = add_to_window_list (s, wins[i]);
- if (attr.map_state == IsViewable) manage (win, s);
+
+ if (attr.override_redirect != True)
+ {
+ win = add_to_window_list (s, wins[i]);
+ if (attr.map_state != IsUnmapped) manage (win, s);
+ }
}
XFree((void *) wins); /* cast is to shut stoopid compiler up */
}