]> Dogcows Code - chaz/openbox/commitdiff
dont let windows place over menu or toolbars if they don't have a parent
authorDana Jansens <danakj@orodu.net>
Mon, 4 Jun 2007 19:06:09 +0000 (19:06 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 4 Jun 2007 19:06:09 +0000 (19:06 +0000)
openbox/place.c

index bfe27e28778e9b091ebe1d545f4f3e1e4ba6abfa..ea131bea3e1e73de60d99e05633436f144c77c4f 100644 (file)
@@ -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)))
This page took 0.023444 seconds and 4 git commands to generate.