summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-04 19:06:09 +0000
committerDana Jansens <danakj@orodu.net>2007-06-04 19:06:09 +0000
commitc0aa4f155b2139406693e86748d085981b19167b (patch)
tree7eca863967a7c5da0f75206ad4ddb89a33822889
parent0a5ac0c8ef4d921e7774caeddf853ddfd3ef1131 (diff)
dont let windows place over menu or toolbars if they don't have a parent
-rw-r--r--openbox/place.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/place.c b/openbox/place.c
index bfe27e28..ea131bea 100644
--- a/openbox/place.c
+++ b/openbox/place.c
@@ -270,7 +270,8 @@ typedef enum
#define SMART_IGNORE(placer, c) \
(placer == c || c->shaded || !c->frame->visible || \
c->type == OB_CLIENT_TYPE_SPLASH || c->type == OB_CLIENT_TYPE_DESKTOP || \
- c->type == OB_CLIENT_TYPE_MENU || c->type == OB_CLIENT_TYPE_TOOLBAR || \
+ ((c->type == OB_CLIENT_TYPE_MENU || c->type == OB_CLIENT_TYPE_TOOLBAR) &&\
+ client_has_parent(c)) || \
(c->desktop != DESKTOP_ALL && \
c->desktop != (placer->desktop == DESKTOP_ALL ? \
screen_desktop : placer->desktop)))