summaryrefslogtreecommitdiff
path: root/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-08-27 22:18:18 +0000
committersabetts <sabetts>2000-08-27 22:18:18 +0000
commit10997e1bf2d28d49c5d6c45e5322b93576fa98a6 (patch)
tree445c16ddfef0bbecab1765ea6721a64576d055e2 /manage.c
parentb4edb12f736259afb5df4230c1901e695451427e (diff)
downloadratpoison-10997e1bf2d28d49c5d6c45e5322b93576fa98a6.zip
scanwins now checks for override_redirect windows and skips them (we
don't manage these).
Diffstat (limited to 'manage.c')
-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 */
}